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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row headers

Thread ID:

Created:

Updated:

Platform:

Replies:

51396 Nov 3,2006 07:04 PM UTC Nov 6,2006 04:27 AM UTC WinForms 1
loading
Tags: GridControl
George Thomas
Asked On November 3, 2006 07:04 PM UTC

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 6, 2006 04:27 AM UTC

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.

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

;