Asp.net grid view column count
<p>I am  using asp.net with vb. Here i bind data to Gridview. This Dataset has 5 records with 3 columns and also gridview shows that 5 records with 3 columns. But Gridview.columns.count property return 0. i want to get that colunm count. please help me sir.</p>

<pre><code>    dim lcolumncount as integer
    GridView1.DataSource = ExecuteDataSet("Select Master_TypeID,Master_TypeName,Master_TrimName from Mastertype")
    GridView1.DataBind()

lcolumncount = Gridview.columns.count
</code></pre>

<p>here always lcolumncount rerurn 0. i want 3.</p>
