Strange Problem with UltraWinGrid ButtonColumn
-
I am setting Conditional BackColor property of UltriWinGrid ButtonColumn with this code: private void gridLookup_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if(UtilClass.IsNumeric(e.Row.Cells["BuildingId"].Value.ToString())) { e.Row.CellAppearance.BackColor = Color.PeachPuff; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.PeachPuff; } else { e.Row.CellAppearance.BackColor = Color.White; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.White; } } now this code is working fine at first time but when user perform horizontal scrolling on this grid the button column disappear once and when user again reverse scrolls the column appears without back color formatting, how can I make assigned backcolor stable on scrolling.
-
I am setting Conditional BackColor property of UltriWinGrid ButtonColumn with this code: private void gridLookup_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if(UtilClass.IsNumeric(e.Row.Cells["BuildingId"].Value.ToString())) { e.Row.CellAppearance.BackColor = Color.PeachPuff; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.PeachPuff; } else { e.Row.CellAppearance.BackColor = Color.White; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.White; } } now this code is working fine at first time but when user perform horizontal scrolling on this grid the button column disappear once and when user again reverse scrolls the column appears without back color formatting, how can I make assigned backcolor stable on scrolling.
Thats nice. Now why dont you ask the authors of this control? :doh:
-
I am setting Conditional BackColor property of UltriWinGrid ButtonColumn with this code: private void gridLookup_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { if(UtilClass.IsNumeric(e.Row.Cells["BuildingId"].Value.ToString())) { e.Row.CellAppearance.BackColor = Color.PeachPuff; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.PeachPuff; } else { e.Row.CellAppearance.BackColor = Color.White; e.Row.Cells[0].Band.Layout.Override.CellButtonAppearance.BackColor = Color.White; } } now this code is working fine at first time but when user perform horizontal scrolling on this grid the button column disappear once and when user again reverse scrolls the column appears without back color formatting, how can I make assigned backcolor stable on scrolling.
This question belongs on the Infragistics user forum, not a general programming forum. There are 10 kinds of people in the world.
Those that read binary...
...and those who don't.