how can i read the values of one column of datagrid in vb.net desktop application?
datagrid column
Collapse
X
-
Tags: None
-
Let g is GridView
int32 j;
for (Int32 i = 0; i < g.Rows; i++)
{
//cell 0 is first cell of the grid
j = g.Rows[i].Cells[0].Text;
}
Originally posted by summiyashaheenhow can i read the values of one column of datagrid in vb.net desktop application? -
This applies to the object "DataGridView"( windows) and also I believe to "GridView"( web) but not for "DataGrid".
Originally posted by mohitkatariyaLet g is GridView
int32 j;
for (Int32 i = 0; i < g.Rows; i++)
{
//cell 0 is first cell of the grid
j = g.Rows[i].Cells[0].Text;
}Comment
Comment