Hi,
I need to set fore color RED for minus values in particular columns in the gird. The grid has 3 bands. I have set the vlaues in InitializeRow event in the following way and I have set up the grid's DataSource when loading the form.
{
e.Row.Cells["col1"].Appearance.ForeColor = Color.Red;
e.Row.Cells["col2"].Appearance.ForeColor = Color.Red;
if (Convert.ToDecimal(e.Row.Cells["col1"].Value) < 0)
if (Convert.ToDecimal(e.Row.Cells["col2"].Value) < 0)
if (Convert.ToDecimal(e.Row.Cells["col3"].Value) < 0)
}
This method is taking a long time load the values for the grid. Can anyone let me know is there a better way to do this same functionality?
Thanks in Advance!
nw
Thanks alot Mike. It was really helpful :)
Regards,
Nw
You should check out the WinGrid Performance Guide.