Datagrid on winform question

  • Thread starter Thread starter dgk
  • Start date Start date
D

dgk

I can't seem to find a way to get a boolean database column to map to
a checkbox. It's maps to a plain text column that gives a value of
"True" or "False". Not really very elegant. I can't find a way to set
this through the designer.
 
Hi,

Add a datagridboolcolumn to your tablestyle.

Ken

Where? I go to the tablestyles grid property to get to the
DataGridTableStyles Collection Editor. I can add another tablestyle
but that doesn't seem right. The GridColumnStyles property access the
DataGridColumnStyles Collection Editor. This seems like a likely place
but it only allows me to add columns but adding columns only adds
textbox type columns.

Oh, there's a little arrow on the Add button. MS has to be kidding me.
This is how to change a column type? You have to add a boolean column
and change its values to match the one you want to turn into boolean,
and then delete the original column. ??? Hee hee, no wonder I missed
it.

This the correct story then?
 
Back
Top