How can I do this:
The code I am playing with is pretty simple.
I have displayed a datatable in my datagrid.
I can see the data perfectly.
I just want to know if I can do something like:
Or would I have to store the datatable in the viewstate of the page manually?Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dt As DataTable = CType(MyDataGrid.DataSource, DataTable) Response.Write(dt.Rows.Count.ToString) End Sub
Woka




Reply With Quote