Resolved DataGrid CheckBox Double Click Problem

Locutus

Member
Joined
Jan 25, 2012
Messages
5
Programming Experience
Beginner
Hi.

I created database which two columns.
Column 1 header "Name" and column 2 Header "Registered"
Column 2 is Boolean Type

Then after binding data with datagrid I wrote simple code
Column index are 0 based
-----------------------------------------------------------------------------------------------------------------------------------------
Private Sub datagrid_SelectedCellsChanged(ByVal sender as Object, ByVal e as System.Windows.Controls.SelectedCellsChangedEventArgs)

if datagrid.CurrentColumn.DisplayIndex = 1 then


if datagrid.Items(datagrid.SelectedIndex)(1) = true then

datagridlista.Items(datagrid.SelectedIndex)(1) = false

else

datagridlista.Items(datagrid.SelectedIndex)(1) = true

end if

end if

end sub
------------------------------------------------------------------------------------------------------------------------------------------
That's all

I hope I've help someone

P.S Sorry for my English
 
Top Bottom