I'm not sure what you are trying to do here... copy the entire grid into a data table?
You are correct, an UltraGridRow is not a DataRow. So you would have to copy the data individually, you can't just convert a grid row to a data row automatically.
then i use this code
foreach (UltraGridRow rw in grdListe.DisplayLayout.Rows.GetFilteredInNonGroupByRows()) { dt.Rows.Add(rw); }
bu dt (DataTable) not convert to UltraGridRow and can not add..
how i can do this ?
thanks
Thats great, exactly what I was after cheers.
There are methods on the rows collection to help you do this.
UltraGridRow[ rows = this.ultraGrid1.Rows.GetFilteredInNonGroupByRows(); foreach (UltraGridRow row in rows) { // Do Something }