Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
How select all rows in xamWebGrid
posted

Hello.

I'm using NetAdvantage WebClient Trial 2009.2 to evaluation.

I want to implement "Ctrl-A" like function.

So I need to select all rows in xamWebGrid.

I try this code first:

foreach (var x in webgrid.Rows)
{
  webgrid.SelectionSettings.SelectedRows.Add(x);
}

but this is too slow.

 

So I tryed an other code:

webgrid.SelectionSettings.SelectedRows.AddRange(webgrid.Rows);

but it does'nt match Type of Arg.

Rows is RowCollection, not match SelectedCollectionBase<Row>.

 

Please tell me good performance way to do it.


Parents
No Data
Reply Children