If it's a datagrid in Win app, you can use the datagrid's underlying
datasource, e.g. datatable to get row count.
DataTable tbl = (DataTable)datagrid.DataSource;
int rowCount = tbl.Rows.Count;
If it’s a datagrid in Web app, you can get it’s row count by
int rowCount = datagrid.Items.Count;
HTH
Elton Wang
elton_Wang@hotmail.com
> (Type your message here)
> i am trying to create tables in sql server programmatically in vb.net.i can add fields and update them programmatically. i need to know how i can update the table records when displayed in datagrid.i want to update the datagrid/records as it is done in access.need to know how to get count of number of rows filled in datagrid.plzzz help!!
[quoted text clipped - 5 lines]
>
> <Id>kSuuS0+4DU+lP+VwPUuFeA==</Id>