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.
ADAdministrator Syncfusion Team September 16, 2005 11:32 AM UTC
Hi,
To get the corressponding record from the given rowindex, bind the grid to the datasource. The code snippet is as follows,
CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember];
DataRowView drv = (DataRowView)cm.Current;
DataRow dr=(DataRow)drv.Row;
Regards,
Leo.
SAsahonSeptember 16, 2005 12:40 PM UTC
but this code is only for current row, how can I get row by rowindex, f.e. to process querycellinfo
SAsahonSeptember 16, 2005 01:23 PM UTC
thank you, just found:
CurrencyManager cm=(CurrencyManager)BindingContext[dtg.DataSource, dtg.DataMember];
DataRow row;
DataView dv=(DataView)cm.List;
if (e.RowIndex>dv.Count) return;
row=dv[e.RowIndex-1].Row;