Hii,,, Friend.
may be you get some help from this...
There are
two ways to solve this problem...
(1) use this gridview :
<asp:GridView ID="Gridview1" runat="server" AutoGenerateColumns="False"
style="margin-top: 0px" Width="529px">
<Columns>
<asp:BoundField DataField ="Name" HeaderText ="Name" ReadOnly="true" />
<asp:BoundField DataField ="Address" HeaderText ="Address" ReadOnly="true"/>
<asp:BoundField DataField ="Gender " HeaderText ="Gender " ReadOnly="true"/>
<asp:BoundField DataField ="Department" HeaderText ="Department" ReadOnly="true"/>
</Columns>
</asp:GridView>
(2) Plz change this in your code
AutoGenerateColumns="False", to
AutoGenerateColumns="True"...
then you get the data in the grid view....
like this..
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="True"
style="margin-top: 0px" Width="529px">
</asp:GridView>
Also keep in mind you have to
Bind the DataSource to
GridView in
Code Behind.......
also you
Bind the data in the
Page Load..
Hopefully it Works..
Best of Luck...