Hi,
My RadGridView is binding to a DataTable, and one column is boolean checkbox. I have to click the chechbox for several times to enable to edit it, how do I solve this problem?
My RadGridView is binding to a DataTable, and one column is boolean checkbox. I have to click the chechbox for several times to enable to edit it, how do I solve this problem?
<Window x:Class="Window1" Title="Window1" Height="300" Width="300" xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"> <Grid> <my:RadGridView Name="RadGridView1" /> </Grid> </Window>Class Window1 Public Sub New() InitializeComponent() Dim dt As New System.Data.DataTable dt.Columns.Add("hide", GetType(Boolean)) dt.Columns.Add("highlight", GetType(String)) dt.Columns(0).DefaultValue = True dt.Columns(0).ReadOnly = False dt.Columns(1).DefaultValue = "test" dt.Columns(1).ReadOnly = True Dim row1 As System.Data.DataRow = dt.NewRow row1("hide") = True row1("highlight") = "A" dt.Rows.Add(row1) Dim row2 As System.Data.DataRow = dt.NewRow row2("hide") = True row2("highlight") = "B" dt.Rows.Add(row2) RadGridView1.ItemsSource = dt End SubEnd Class