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

Checkbox in asp.net datagrid

Status
Not open for further replies.

jambai

Programmer
Mar 21, 2007
58
US
i have checkbox in gridview. There is status field in database how to display the checkbox as "true" or "false" based on the boolean value from the database

Thanks
Jambai
 
Use the RowDataBound event of the gridview. That row fires for each row that is bound. There you can check the value and set the checkbox accordingly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top