CodePlexProject Hosting for Open Source Software
in the description I found that SelectedDataRows will be used to get or to set which row(s) are selected.
To get which ones are selected works fine but how to set using an array of objects?
you must convert that array into an array of datagrid rows :) and then you can select them
Thanks ... Maybe you've a short sample for as I already spend a couple of hours to do so ...
how did you databind your array to grid?
I use the extension for the DataSource:
DataTable dt = MDB.getActivities(7) ;
DevAge.ComponentModel.BoundDataView bd = new DevAge.ComponentModel.BoundDataView(dt.DefaultView);
ntGrid.DataSource = bd;
it should work somthing lik this
ntGrid.Selction.SelctedDataRow = dt.rows[myRowIndex];
ntGrid.SelectedDataRows = dt.Rows; reports that dt.Rows can't be converted to object.
However ntGrid.Selection.SelectRow(0,true) works fine for me.
Thanks for your support.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.