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

select all rows in group on mouse click

Thread ID:

Created:

Updated:

Platform:

Replies:

49962 Oct 2,2006 02:37 PM UTC Oct 3,2006 07:17 AM UTC WinForms 2
loading
Tags: GridControl
Vitaliy
Asked On October 2, 2006 02:37 PM UTC

Prompt please as on click on group summary row to select all rows in group

Vitaliy
Replied On October 2, 2006 02:40 PM UTC

in GridGroupingControl

Administrator [Syncfusion]
Replied On October 3, 2006 07:17 AM UTC

Hi Vitaliy,

Try these code in TableControlCellClick event and let me know if this helps.

int row = e.Inner.RowIndex;
int col = e.Inner.ColIndex;
GridTableCellStyleInfo style = e.TableControl.Model[row,col] as GridTableCellStyleInfo;
Element el = style.TableCellIdentity.DisplayElement;
if(el.Kind == DisplayElementKind.Summary && el.ParentGroup != null)
{
foreach(Record rec in el.ParentGroup.Records )
{
e.TableControl.Table.SelectedRecords.Add(rec);
}
}

Thanks,
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

;