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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datagrid control

Status
Not open for further replies.

anhtri

Programmer
Sep 28, 2001
21
0
0
i use a datagrid control to display data.
the value typed boolean (yes/no) is always showed as "0" or "1",
how can i change this to "yes/no"? or add a checkbox into the column data, if possible?
Pls help me, thanks!!!
 
The datagrid isn't the best of grids but this can be done. On the datagrids property box if you select custom and then when the dialog box is displayed select the format tab it gives a list of columns in a combo box and the formatting you can apply to them. If you want it to be Boolean then select Boolean and you can then decide the value of true or False. Also you can make it a check box but the value in the database must be Boolean.
 
Thank you Spellman,
i do all those things, the value "yes/no" work fine,
but when i make it a check box, nothing happen
do i have to add a new checkbox in? and how to do that?
Anhtri
 
I've tried it myself Anhtri but can't get it to work either. Sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top