11 December 2007 12:11
by
tonyj
Infragistics Grid (UltraWinGrid) - Adding style
I needed a small reminder today on how to add colour to cells when using the ultragrid component from infragistics. The simple answer is to use the InitializeRow event;
1 2 3 4 5 6 7 8 9 10 |
private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if (e.Row.ListObject is MyDataItem) { MyDataItem d = (MyDataItem)e.Row.ListObject; if (d.Tel == "456") e.Row.CellAppearance.BackColor = Color.Yellow; } } |
Comments
Anonymous comments are disabled
About tonyj
Hi, I'm Tony Johnson. I'm a technical architect and software developer based in Lancashire, UK, specialising in .NET development. This is um, well, it's my blog!