Read From DataGrid
-
I would like to read the content of DataGrid after being updated particular or all rows. But I can read current row only. How to read all rows?. The code i am using to read current row... DataGrid name - DGField BindingManagerBase BMB = DGField.BindingContextDGField.DataSource,DGField.DataMember]; DataRow Dr = ((DataRowView) BMB.Current).Row; MessageBox.show(Dr[0].ToString()); Jey
-
I would like to read the content of DataGrid after being updated particular or all rows. But I can read current row only. How to read all rows?. The code i am using to read current row... DataGrid name - DGField BindingManagerBase BMB = DGField.BindingContextDGField.DataSource,DGField.DataMember]; DataRow Dr = ((DataRowView) BMB.Current).Row; MessageBox.show(Dr[0].ToString()); Jey
You can access one cell of the grid as : DGField[rowIndex,ColumnIndex] bye