Reading the data of Datagrids
-
Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?
-
Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?
can i ask you how you filled this grid with your data ??
When you get mad...THINK twice that the only advice Tamimi - Code
-
Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?
-
Why don't you read the data from the data sources that you used to populate the grids?
--- single minded; short sighted; long gone;
-
Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?
There are two different ways: 1. is DataGrid.Item(rowindex as Integer, columnindex as Integer) to access (read/write)the value of DataGrid's particular item. 2. is concept based, i.e. Data Grid itself has no rows and columns, it just displays the values of DataSet or DataTable. It means each data grid has dataset or data table, you just need to detach that data set or data table. In order to do that you have to cast the DataSource Property of DataGrid into data table or data set. Dim dt as DataTable dt = Cast(DataGrid.DataSource, DataTable) Now everything is in you hand, mess with them. Hope this will clear your concept.
Be a part of solution, rather then be a part of problem