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.

How to select all the Rows in the DataGrid(GridDataControl)

Thread ID:

Created:

Updated:

Platform:

Replies:

97370 Nov 22,2010 06:19 AM Nov 24,2010 08:31 AM WPF 1
loading
Tags: GridControl
Ramana
Asked On November 22, 2010 06:19 AM

I'm using a GridDataControl and while loading the DataGrid all the Rows in the DataGrid should be selected.



Ponraja A [Syncfusion]
Replied On November 24, 2010 08:31 AM

Hi Ramana,

Thanks for choosing Syncfusion products.

You can achieve your requirement using SelectedRange property of the GridDataControl. In that we can add the full range of the grid while it is loaded then it will be select all rows in the grid.

[Sample Code]
[C#]

void dataGrid_ModelLoaded(object sender, EventArgs e)
{
this.dataGrid.Model.SelectedRanges.Add(GridRangeInfo.Table());
}

Please let us know if you need any more details.

Regards,
Ponraja


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.

;