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.
Unfortunately, activation email could not send to your email. Please try again.

writing specific numbers at row header

Thread ID:





77595 Nov 8,2008 03:39 AM Nov 10,2008 06:21 PM Windows Forms 2
Tags: GridControl
Hyung-Jin Lee
Asked On November 8, 2008 03:39 AM

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

NumberedRowHeaders = true;
["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.

Jisha Joy [Syncfusion]
Replied On November 10, 2008 04:16 AM

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.


Hyung-Jin Lee
Replied On November 10, 2008 06:21 PM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.