Home Forums WinForms controls Xceed Grid for WinForms problem with GridCheckBox Reply To: problem with GridCheckBox

User (Old forums)
Member
Post count: 23064

Nevermind,

I actually just fixed it using this code:

<code>
if ((string)Convert.ToString(myRow.Cells[“CONTROL”].Value) != “”)
{
if (myRow.Cells[“CONTROL”].Value.ToString() == “True”)
{
strControl = “T”;
}
else
{
strControl = “F”;
}
}
else
{
strControl = “F”;
}
</code>

I had to cast it as a string to do the comparison. Hopefully this might help someone else in the future.

Thanks Tommy.

Imported from legacy forums. Posted by Nathan (had 4022 views)