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.

Client Side Paging Grid Summary

Thread ID:

Created:

Updated:

Platform:

Replies:

96859 Oct 11,2010 07:41 AM Oct 21,2010 07:36 AM Windows Forms 4
loading
Tags: GridControl
Narasimha Pavan
Asked On October 11, 2010 07:41 AM

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 10:08 AM

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


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

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 12:27 AM


Thanks for your response.

Could you please provide with the zipped solution file.

Regards,
Pavan


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

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.

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.

;