writing specific numbers at row header

Hellow.
I showed the numbers in the row header in the
gridDataBoundGrid using below code.

-----------------------------------------
this.gridDataBoundGrid1.Model.Options.
NumberedRowHeaders = true;
this.gridDataBound1_Movie.BaseStylesMap
["Row Header"].StyleInfo.CellType = "Header";
-----------------------------------------

But number is always stated from 1.
If I want statring number to be 100 or 200,
What should I do ?
Please, give me an answer. Thank you.


2 Replies

JJ Jisha Joy Syncfusion Team November 10, 2008 09:16 AM UTC

Hi Lee,


writing specific numbers at row header

This can be achieved by handling the QeryCellInfo. Please refer the code:


this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);


void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.ColIndex == 0 && e.RowIndex>0)
{
e.Style.CellType = "Header";
e.Style.CellValue = e.RowIndex + 99;
}
}



Please try this and let me know if this helps.

Regards,
Jisha



HL Hyung-Jin Lee November 10, 2008 11:21 PM UTC

Hello. Jisha
It is really helpful and I solved the
problem.
Thank you very much. ^_^



Loader.
Up arrow icon