Anthony Clarke

Anthony Clarke

  • NA
  • 127
  • 0

Please Help - RowStyle Event

Jun 6 2011 2:52 PM
Hey,

I've got a Gridcontrol that is populated by a linq query but my rowstyle event doesnt seem to work.

Here is my code :

 

private

{

GridView View = sender as GridView;

if (e.RowHandle >= 0)

{

string category = View.GetRowCellDisplayText(e.RowHandle, View.Columns["Creditamount"]);

{

if (category == "Creditamount")

{

e.Appearance.BackColor =

}

But when i load my program the grid control just stays the same colour.

Hope you can help

Thanks

Anthony


Color.Red;
void gridView1_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e)

Answers (2)