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

Custom section problem.

Thread ID:

Created:

Updated:

Platform:

Replies:

67907 Sep 4,2007 02:49 PM UTC Sep 8,2007 01:01 AM UTC WinForms 4
loading
Tags: Grouping
Vladymyr
Asked On September 4, 2007 02:49 PM UTC

I create custom section. This section inherit EmptySection class.

In grid grouping control in QueryCellStyleInfo event I receive my cells of my custom section but e.TableCellIdentity.Column is equal null.

What can I do with problem? Cell column is equal null. How can I get cell column in e.TableCellIdentity.Column?

Vladymyr
Replied On September 5, 2007 07:17 AM UTC

Please help

Vladymyr
Replied On September 5, 2007 03:00 PM UTC


Answer please.
>Please help

Vladymyr
Replied On September 7, 2007 03:54 PM UTC

Please help.

>
Answer please.
>Please help

Rajagopal [Syncfusion]
Replied On September 8, 2007 01:01 AM UTC

Hi Vladymyr,

We regret for the delay in responding to your query.

The e.TableCellIdentity.Column refers to a GridColumnDescriptor(column) in the GridColumnDescriptorCollection. This is applicable only for RecordFieldCell, ColumnHeaderCell or cells associated with GridColumnDescriptor. If you want to apply any style settings to a column in the custom section then, you may do it by checking for the column index in the QueryCellStyleInfo event handler. Please try the code below.

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el != null && el is ExtraSection)
{
int field = this.gridGroupingControl1.TableDescriptor.NameToField(columnName);
int col = this.gridGroupingControl1.TableDescriptor.FieldToColIndex(field);
if (e.TableCellIdentity.ColIndex == col)
e.Style.BackColor = Color.Red;
}
}

Here is a sample
http://websamples.syncfusion.com/samples/Grid.Windows/67907/main.htm

Let me know if this helps.

Regards,
Rajagopal

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

;