Maxx
Posts: 287
Joined: 3/22/2004 Status: offline
|
Changing text of a column heading does not notify the grid the column headings need to be refreshed at runtime. To get around this we have implemented a BeginBatch/EndBatch command. Any code wrapped inside a begin/end batch method will not cause any painting to occur until the EndBatch method is called. The BeginBatch and EndBatch methods have been part of ezGrid since version 2.0 but have now been further optimized and as of v2.0.12 will correctly render column headings if they have changed. To change column headings during run time you will need to do something similar to the following. C# gridControl1.BeginBatch(); gridControl1.Columns[1].ColumnHeader.Text = "Hello"; gridControl1.EndBatch(); VB.NET GridControl1.BeginBatch() GridControl1.Columns(1).ColumnHeader.Text = "Hello" GridControl1.EndBatch()
_____________________________
Director of CDI Support
|