G
Guest
Hi,
my code is:
myDataTBL.Columns.Add("checked",System.Type.GetType("System.Boolean"));
DataGridBoolColumn cs1 = new DataGridBoolColumn();
cs1.NullValue=false;
cs1.TrueValue=true;
cs1.FalseValue=false;
cs1.MappingName="checked";
cs1.ReadOnly=false;
dataGrid1.TableStyles[0].GridColumnStyles.Add(cs1);
what i get is always a gray checkbox. When i click it, it becomes checked,
and another click turns it into grey, and then unchecked act...
I want:
a. default value is uncheked
b. only to states - checked/unchecked (no gray)
what should i do... please help..
my code is:
myDataTBL.Columns.Add("checked",System.Type.GetType("System.Boolean"));
DataGridBoolColumn cs1 = new DataGridBoolColumn();
cs1.NullValue=false;
cs1.TrueValue=true;
cs1.FalseValue=false;
cs1.MappingName="checked";
cs1.ReadOnly=false;
dataGrid1.TableStyles[0].GridColumnStyles.Add(cs1);
what i get is always a gray checkbox. When i click it, it becomes checked,
and another click turns it into grey, and then unchecked act...
I want:
a. default value is uncheked
b. only to states - checked/unchecked (no gray)
what should i do... please help..