Jump to content

Displaying Data In Datgridview


gs770

Recommended Posts

  • 6 months later...

Hi,YOu Have To Make the COnnection with Database UseingSqlConnection Con= new SqlCOnnection("Conection Strng");SqlDataAdapter Da= new ("SQL Query",Con);DataSet Ds= new DataSet();Da.Fill(Ds);GridView1.DataSource=Ds;GridView1.DataBind();the above part is the code behind filethe Design COde Part Is<asp:GridView Id="GridView1" runat="server"><AlternatingRowStyle BackColor="AliceBlue" BorderColor="ActiveBorder" BorderWidth="1" ForeColor="Azure" /></asp:GridView>i hope it may the solution of your problem.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...