L
lord.zoltar
I am wondering how you guys highlight cells or rows (by changing the
text or background colour) in a DataGridView. Right now, I apply styles
to certain rows or cells in the CellFormatting even handler, but the
way it works is by looping through all of the rows and then deciding if
that rows needs special formatting.
The problem is that I don't think this method will scale well. I have a
dataset with > 5,000 rows (and others are larger, this one is just a
test set) and I need a better way to apply styles to the cells. Is
there any way to apply styles to the rows or cells at the time they are
loaded (from the database) into the control, rather than when the
cellformatting handler is called?
or any better way to do it?
text or background colour) in a DataGridView. Right now, I apply styles
to certain rows or cells in the CellFormatting even handler, but the
way it works is by looping through all of the rows and then deciding if
that rows needs special formatting.
The problem is that I don't think this method will scale well. I have a
dataset with > 5,000 rows (and others are larger, this one is just a
test set) and I need a better way to apply styles to the cells. Is
there any way to apply styles to the rows or cells at the time they are
loaded (from the database) into the control, rather than when the
cellformatting handler is called?
or any better way to do it?