Hi,
The DataSource exists during the data binding. Once data binding is done (after DataBind call returned), the Grid has retrieved all data from the DataSource into the Grid and the DataSource is no longer associated with the Grid from this point on.
After that point you will need to get data from the Grid through its Items property. For example, the following code gets item count:
The following code gets cell values on (0, 0):
Code: Visual Basic.NET
Grid1.Items(0).Cells(0).Value
Hope this helps.
Thanks!