By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,538 Members | 890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,538 IT Pros & Developers. It's quick & easy.

Can't change style of cell in a datagridview

P: n/a
I have a datagridview whose DataSource property is set to a (class derived
from ) BindingList.

I want to highlight certain cells whose values are abnormal. So I'm writing
code like

highlightStyle = new DataGridViewCellStyle (... etc);

.... and then iterating down the rows and when I find an abnormal cell I have
code like

(thisDataGridViewRow .Cells["thisColumnName"]).Style = highlightStyle;
This "works" in so far as I can check at runtime that the style on the cell
of the datagridview has indeed changed. However, there is no change in
visible appearance at all to the cell ;-(

Anyone know what might be going on?
Sep 19 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.