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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

writing specific numbers at row header

Thread ID:





77595 Nov 8,2008 08:39 AM UTC Nov 10,2008 11:21 PM UTC WinForms 2
Tags: GridControl
Hyung-Jin Lee
Asked On November 8, 2008 08:39 AM UTC

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 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.


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

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon