Setting Cell/Row/Column Properties in DataGrid

F

fripper

After a good bit of urging from folks in this newsgroup I have begun to
become familiar with the VB .Net DataGrid control as a replacement for one
my favorite VB6 controls ... the FlexGrid. In any event, I have a DataGrid,
added a GridTableStyle, bound a DataTable to it and everything displays
pretty well. Now, sometimes when the user clicks on a cell I would like to
be able to determine the row/column number and set the foreground and
background color of that cell to particular values ... other times I want to
set the row that was clicked to a new color ... and sometimes I want to
change the column color. Can someone point to an information source that
tells me how to do this? So far I have not seen any way to set the color
(or font) properties of a particular cell or column or row.

Thanks.
 

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

Top