Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Extracting Data from a Grid Bound to a Typed DataSet- .Net Framework

RSS
Modified on Sun, Nov 30, 2008, 1:59 AM by Administrator Categorized as ┬ĚNet Framework
The following C# code sample demonstrates how to extract data from a DataGrid control bound to a typed DataSet. You can convert code between C# and VB.NET at this website.

DataGridView grid = (DataGridView)sender;
DataGridViewRow gridRow = grid.Rows[e.RowIndex];
DataRowView rowView = (DataRowView)gridRow.DataBoundItem;
MyDataTable.MyDataTableRow dataRow = (MyDataTable.MyDataTableRow)rowView.Row;

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.