Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set a checkbox in datagrid column?

Status
Not open for further replies.

NatashaM

Programmer
Apr 29, 2002
9
US
In the datagrid I set for some columns Format property to the checkbox but in runtime it shows only 0 or 1.
I found some suggestion to write that code :
DataGrid1.Columns(3).DataFormat.Type = StdFormat.fmtCheckbox

but nothing changed.

Any other ideas?

Thank you!

 
i doubt that you will get that in a data grid...

try using MS flex grid..and get data into it..

 
You cannot do this in a DataGrid nor a Flex grid.
You could use a ListView though.

Or, in a DataGrid, set the column's button property to TRUE, it's NumberFormat property to "yes/no", and on the Button's click event, toggel the value between Yes and No.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top