I am developing a datgrid in vb.net
I gave response.write statement to get the number of columns in the datagrid.
VB Code:
sqlConn = New OracleConnection(State.sConnection) sqlConn.Open() sqlDa = New OracleDataAdapter(sqlsearchquery, sqlConn) sqlDa.Fill(sqlDs) DataGrid1.DataSource = sqlDs DataGrid1.DataBind() Response.Write("Datagrid Columns:" & DataGrid1.Columns.Count.ToString())
The Datagrid shows 17 columns on display.
But the response.write returns 0 columns. WHY ?
anybody please help on this.




Reply With Quote