Mike wrote:
Hi,
How can I get data frrom a datagrid. eg. if I have a datagrid of 2 columns
and 2 rows, how can I get the data from it into array or variables!!!?
Thanks
Dim DT as DataTable = DirectCast(DataGrid.DataSource, DataTable)
For each Row as DataRow in DT
For ii as integer = 0 to DT.Columns.Count - 1
Debug.Writeline(Row(ii).ToString)
Next
Next
If you didn't supply the datagrid with a datatable, cast it to whatever
you did supply it with.