Datagrid format column check box

omart

Member
Joined
Jul 6, 2008
Messages
13
Programming Experience
1-3
I am using sql 2005 free edition.
vb .net 2003

in one of my columns i have it set to bit.

Initialy when i display this in a datagrid, the column values comes up as check boxes, (which is good and i was not expecting that.)

If I create a datagridTextBoxColumn style and only set the mapping name, header text, and width then

the column comes up as true or false..text​

I see a property for 'format' under datagridTextBoxColumn but, cant seem to find out how to set the column to display the check boxes insted of text??
 
A column of type DataGridViewTextBoxColumn will never display checkboxes
Perhaps you should consider changing the column to a DataGridViewCheckBoxColumn type
 
ah that does make sense now, thanks that worked
 

Latest posts

Back
Top