Get data From DataGrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,

how can i take the data i entered to a dataGrid and put it to a dataTable ( i know how to insert data to DataTable, i just don't know how to get the data from the dataGrid), by the way i'm writing in C#
 
hi
If you datagrid has the datatable as his datasource , this should happen
automatically
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Hi Mohamed,
you told me that if my dataGrid's DataSource is the DataTable it's goes automaticly, the problem is that i tried to write my DataTable as a dataSource and got some errors, so i entered my dataGrid to a dataSet and then connected my DataGrid to this DataSet.
so i have 2 questions:

1. how can enter my DataTable as The DataGrid's DataSource?

2. how can i get the data from the dataGrid to The DataTable if i'm using this dataSet?
 
Back
Top