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.

Alphalabel Numericlabel in GDB (griddataboundcontrol)

Thread ID:

Created:

Updated:

Platform:

Replies:

69708 Nov 8,2007 01:23 PM Nov 9,2007 05:53 AM Windows Forms 1
loading
Tags: GridControl
Arup Banerjee
Asked On November 8, 2007 01:23 PM

Hi,

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.

Regards
Arup

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

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();
}
}



CONFIRMATION

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.

;