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

Identify summary row in grouping grid...urgent help

Thread ID:

Created:

Updated:

Platform:

Replies:

72676 Mar 31,2008 01:02 PM UTC Apr 1,2008 04:10 AM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Gomati
Asked On March 31, 2008 01:02 PM UTC

Hi,

I need a help in identifying a summary row of grouping grid in querycellstyleinfo event as i dont want a delete image button to set for that summary row cell.

Any help in this would be greatly appreaciated.

Thanks,
Gomati


Administrator [Syncfusion]
Replied On March 31, 2008 08:38 PM UTC

Hi Gomathi,


Please try the below code snippet to identify the summary row of the GroupingGrid in QueryCellStyleInfoevent.


void GridGrpCtrl_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el != null && el.Kind == DisplayElementKind.Summary
&& e.TableCellIdentity.SummaryColumn != null)
{
//Get the Name of Summary using the e.TableCellIdentity.SummaryColumn.Name property;
object o = e.Style.Text;
}
}

Please let me know if this helps.



Best regards,
Johnson




Gomati
Replied On April 1, 2008 03:57 AM UTC

Hi Jhonson,

This doesnt work for my requirement. It makes all cell in summary column with same style where as i want only cell of that summary column and that summary row.I want to catch row also which is important as good as my summary column.

Thanks,
Gomati

>Hi Gomathi,


Please try the below code snippet to identify the summary row of the GroupingGrid in QueryCellStyleInfoevent.


void GridGrpCtrl_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el != null && el.Kind == DisplayElementKind.Summary
&& e.TableCellIdentity.SummaryColumn != null)
{
//Get the Name of Summary using the e.TableCellIdentity.SummaryColumn.Name property;
object o = e.Style.Text;
}
}

Please let me know if this helps.



Best regards,
Johnson






Gomati
Replied On April 1, 2008 04:10 AM UTC

Hi Jhonson,

I tried to use same element but build some different logic and it worked. Thanks a lot for your help.

Thanks,
Gomati

>Hi Jhonson,

This doesnt work for my requirement. It makes all cell in summary column with same style where as i want only cell of that summary column and that summary row.I want to catch row also which is important as good as my summary column.

Thanks,
Gomati

>Hi Gomathi,


Please try the below code snippet to identify the summary row of the GroupingGrid in QueryCellStyleInfoevent.


void GridGrpCtrl_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el != null && el.Kind == DisplayElementKind.Summary
&& e.TableCellIdentity.SummaryColumn != null)
{
//Get the Name of Summary using the e.TableCellIdentity.SummaryColumn.Name property;
object o = e.Style.Text;
}
}

Please let me know if this helps.



Best regards,
Johnson








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

;