First column

Hello, I have a little question regarding databoudn grid. On the first column I want to write a text (for example the record number) instead of > (the active record sign). It is possible ? Thanks a lot.

2 Replies

AD Administrator Syncfusion Team March 9, 2006 03:40 PM UTC

Hi, Yes, this can be acheived by using QueryCellInfo event. Here is the code snippet //this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo); private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.ColIndex == 0 && e.RowIndex > 0) { e.Style.CellType = "Header"; e.Style.CellValue = e.RowIndex; } } Best regards, Madhan.


FL Florin March 10, 2006 07:40 AM UTC

Many thanks Madhan. It''s work nice. Florin >Hi, > >Yes, this can be acheived by using QueryCellInfo event. Here is the code snippet > > //this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo); > private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) > { > if(e.ColIndex == 0 && e.RowIndex > 0) > { > e.Style.CellType = "Header"; > e.Style.CellValue = e.RowIndex; > } > > } > >Best regards, >Madhan.

Loader.
Up arrow icon