Copying rows with DataBoundGrid

Hi, I have a taks of copying several rows from one databoundgrid to another. Both read from different DBs, so essentially, it all shoul come to a DB manipulation. I am quite new to the Grid and so my question is how do I efficiently map rows from the view back to the DataSet (which is used to populate a Businnes object). Thanks

1 Reply

AD Administrator Syncfusion Team April 8, 2005 04:59 PM UTC

You will need to use the CurrencyManager. Otherwise, things like sorting will break your lookups. int pos = grid.Binder.RowIndexToPosition(rowIndex); CurrencyManager cm = (CurrencyManager)grid.BindingContext[grid.DataSource, grid.DataMember]; DataView dv = (DataView) cm.List; DataRowView drv = (DataRowView) cm.List[pos]; // drv["Qty"] = ????

Loader.
Up arrow icon