Jump to content

Displaying Data In Datgridview


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...