We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

No subject

How can I set in a easy way all column headers? I would like to do this with an one dimensional array or writing it directly to the cell. I'm working with an virtual grid. The event QueryCellInfo does not fire for row = 0. I know that it works with the PopulateValues function, but for this function I need a 2-dimensional array. Thanks for help in advance Barbara

6 Replies

AD Administrator Syncfusion Team February 27, 2003 10:32 AM

Row 0 is a row just like any other row in the grid. Only difference is it contains cells of type CellType = "Header". So, QueryCellInfo will also fire for row 0. Just check for e.RowIndex == 0. Stefan


BA Barbara Arz February 27, 2003 11:45 PM

Yes it works. Sorry, for making an effort, it was my fault. Barbara


BA Barbara Arz February 28, 2003 02:02 AM

No, sorry it doesn't work proper: this.gridControl1[0,1].CellValue = "hh";-> works void GridQueryCellInfo(....) if (e.RowIndex == 0) { e.Style.CellValue ="gfgefe"; }


BA Barbara Arz February 28, 2003 02:03 AM

No, sorry it doesn't work proper: this.gridControl1[0,1].CellValue = "hh";-> works void GridQueryCellInfo(....) if (e.RowIndex == 0) { e.Style.CellValue ="gfgefe"; } What's wrong? Best regards Barbara


AD Administrator Syncfusion Team February 28, 2003 04:06 AM

In your QCI, when you set the cellvalue, also try setting e.Handled = true; to see that resolves this problem.


BA Barbara Arz February 28, 2003 04:14 AM

well, now I installed the latest patch and it works much more better! Barbara

Loader.
Live Chat Icon For mobile
Up arrow icon