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

Alphalabel Numericlabel in GDB (griddataboundcontrol)

Thread ID:





69708 Nov 8,2007 06:23 PM UTC Nov 9,2007 10:53 AM UTC WinForms 1
Tags: GridControl
Arup Banerjee
Asked On November 8, 2007 06:23 PM UTC


We need to show the normal excel like features Alphalabel Numericlabel in GDB (griddataboundcontrol). In Citigroup this control is being widely used. Pls provide suggestions as to how to enable. This is a must have.


Administrator [Syncfusion]
Replied On November 9, 2007 10:53 AM UTC

One way you can do this is to handle the grid.Model.QueryCellInfo event and set the properties there.

//subscribe to the event
this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);

//the event handler
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
if(e.RowIndex == 0 && e.ColIndex > 0)

e.Style.CellType = "Header";
e.Style.Text = GridRangeInfo.GetAlphaLabel(e.ColIndex);
e.Style.Font.Bold = true;
else if (e.RowIndex > 0 && e.ColIndex == 0)
e.Style.CellType = "Header";
e.Style.Text = e.RowIndex.ToString();


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

or the page will be automatically redirected to 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