Jump to content

Displaying Data In Datgridview


gs770
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...