DataGridBoolColumn

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
R

Ryan Liu

Hi,

Is there a way to change the apparance of DataGridBoolColumn, e.g. I'd like
the checkbox has no square box when it is in read only mode?

Thanks a lot!
 
The easiest way to do this IMO, is to hook into the DataBinding event
of the datagrid/gridview, you can then access the row being bound
through the EventArgs, do some conditional testing, replace the cell
contents through e.Row.Cell[columnNumber]...and voila!

Not sure how this works into the DataGridBoolColumn, haven't really
messed with those much but I would imagine it would be the same thing.

hope that helps!

Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top