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

Client Side Paging Grid Summary

Thread ID:

Created:

Updated:

Platform:

Replies:

96859 Oct 11,2010 11:41 AM UTC Oct 21,2010 11:36 AM UTC WinForms 4
loading
Tags: GridControl
Narasimha Pavan
Asked On October 11, 2010 11:41 AM UTC

Hi,

I have a client side paging grid in which for each row there are multiple child rows. These childrows and the main row contain a valued column amount. I want the sum of the childrows amount and the main row amount after each main row. How to achieve this?

Thanks in Advance

Regards,
Pavan


Narasimha Pavan
Replied On October 12, 2010 02:08 PM UTC

Sorry For naming the grid wrongly. It was the custom name given for Multifunctional grid


Bharath M [Syncfusion]
Replied On October 13, 2010 04:26 PM UTC

Hi Pavan,

Thanks for the update.

We suggest you to use the “RecordPreviewRow” feature to achieve requirement. To enable RecordPreviewRow, please set TableOptions.ShowRecordPreviewRow=”true” and you can customize the text inside the preview row, please use the “QueryCellStyleInfo” event as follows

[CS]

this.GridGroupingControl1.TableOptions.ShowRecordPreviewRow = true;
this.GridGroupingControl1.TableOptions.RecordPreviewRowHeight = 25;
this.GridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(GridGroupingControl1_QueryCellStyleInfo);

void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordPreviewCell)
{
Record r = e.TableCellIdentity.DisplayElement.GetRecord();
if (r.HasNestedTables)
{
e.Style.Text = "Child Records Counts : " + r.NestedTables[0].Records.Count.ToString();
}
}
}


Let me know if you have any concerns.

Regards,
Bharath M




Narasimha Pavan
Replied On October 18, 2010 04:27 AM UTC


Thanks for your response.

Could you please provide with the zipped solution file.

Regards,
Pavan


Bharath M [Syncfusion]
Replied On October 21, 2010 11:36 AM UTC

Hi Pavan,

We regret for the delay in getting back to you.

Please refer the attachment for sample website.

Let me know if you have any concerns.

Regards,
Bharath M



RecordPreview_da97d8f0.zip

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

;