brdrok
asked on
"string was not recognized as a valid boolean" datagrid checkbox
Hello,
I have a checkbox in my databound datagrid. however, when attempting to change the checkmark, I get the following error:
string was not recognized as a valid boolean.
anyone here know how to resolve this issue?
thanks in advance.
I have a checkbox in my databound datagrid. however, when attempting to change the checkmark, I get the following error:
string was not recognized as a valid boolean.
anyone here know how to resolve this issue?
thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thats right, but my point is "true" is a string... I was just doing some vb6 earlier today and confused myself.
ASKER
Hello
thanks for the answers. the answer pointed me in the right direction....
my original code was
//creating column
System.Windows.Forms.DataG ridBoolCol umn dbc = new DataGridBoolColumn();
dbc.TrueValue = "Yes"; //-----> changed it to dbc.TrueValue = true;
dbc.FalseValue = "No"; //-----> changed it to dbc.FalseValue = false'
tableStyle.GridColumnStyle s.Add(dbc) ;
tableStyle.GridColumnStyle s[1].Heade rText = "Scaled?";
tableStyle.GridColumnStyle s[1].Mappi ngName = myDataSet.Tables[0].Column s["Scaled" ].ColumnNa me;
thanks for the answers. the answer pointed me in the right direction....
my original code was
//creating column
System.Windows.Forms.DataG
dbc.TrueValue = "Yes"; //-----> changed it to dbc.TrueValue = true;
dbc.FalseValue = "No"; //-----> changed it to dbc.FalseValue = false'
tableStyle.GridColumnStyle
tableStyle.GridColumnStyle
tableStyle.GridColumnStyle
ASKER
i split the points 100:25....hope you guys think it's fair.
thanks
thanks