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.

Row headers

Thread ID:

Created:

Updated:

Platform:

Replies:

51396 Nov 3,2006 02:04 PM Nov 5,2006 11:27 PM Windows Forms 1
loading
Tags: GridControl
George Thomas
Asked On November 3, 2006 02:04 PM

Should the following code change the row header to red....? It doesn't seem to be working.

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Debug.WriteLine (targetRow.ToString () + "," + targetCol.ToString ());


if(e.TableCellIdentity.ColIndex == targetCol && e.TableCellIdentity.RowIndex == targetRow)
{
e.Style.BackColor = Color.Red;


}
}

Administrator [Syncfusion]
Replied On November 5, 2006 11:27 PM

Hi George,

Try setting the Themed property of the GridStlyeInfo object to False. Below is a code snippet

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Debug.WriteLine (targetRow.ToString () + "," + targetCol.ToString ());
if(e.TableCellIdentity.ColIndex == targetCol && e.TableCellIdentity.RowIndex == targetRow)
{
e.Style.Themed = false;
e.Style.BackColor = Color.Red;
}
}

Best Regards,
Haneef

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.

;