The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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"] = ????