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.

select all rows in group on mouse click

Thread ID:

Created:

Updated:

Platform:

Replies:

49962 Oct 2,2006 10:37 AM Oct 3,2006 03:17 AM Windows Forms 2
loading
Tags: GridControl
Vitaliy
Asked On October 2, 2006 10:37 AM

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

Vitaliy
Replied On October 2, 2006 10:40 AM

in GridGroupingControl

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

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.

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.

;