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. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon