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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

97370 Nov 22,2010 11:19 AM UTC Nov 24,2010 01:31 PM UTC WPF 1
loading
Tags: GridControl
Ramana
Asked On November 22, 2010 11:19 AM UTC

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 01:31 PM UTC

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.

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

;