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 again,
I'm need to grab the DataRow used to populate a GDBG row. I have the list (range) info for the selected rows but am not sure of the syntax for mapping a grid row index to it's underlying datarow.
Any suggestions?
Thanks,
Doug Lind
ADAdministrator Syncfusion Team October 16, 2003 12:54 PM UTC
To handle things like the grid being sorted or filtered, it best to go through the CurrencyManager. Here is some code.
int pos = grid.Binder.RowIndexToPosition(rowIndex);
CurrencyManager cm = (CurrencyManager) this.BindingContext[grid.DataSource, grid.DataMember];
DataRowView drv = (DataRowView) cm.List[pos];
DataRow dr = drv.Row;
DLDoug LindOctober 16, 2003 12:58 PM UTC
Mucho Garcia ;-)
> To handle things like the grid being sorted or filtered, it best to go through the CurrencyManager. Here is some code.
>
>
> int pos = grid.Binder.RowIndexToPosition(rowIndex);
> CurrencyManager cm = (CurrencyManager) this.BindingContext[grid.DataSource, grid.DataMember];
> DataRowView drv = (DataRowView) cm.List[pos];
> DataRow dr = drv.Row;
>