how to retrieve values into datagridview in run time with out using binding source
pls respond;
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ravi ShekharPosted Jun 19, 2013, 3:02 AM
shankar BhamidipatiPosted Jun 19, 2013, 3:01 AM
shankar BhamidipatiPosted Jun 19, 2013, 3:00 AM
that washelp full
Ravi ShekharPosted Jun 18, 2013, 3:54 AM
{
SqlDataAdapter adap= new SqlDataAdapter("Select * From table", cn);
DataSet ds= new DataSet();
adap.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}
above code bind your gridview with data.
selva kumarPosted Jun 18, 2013, 3:00 AM
public void bind()
{
Con.Open();
SDA = new SqlDataAdapter("Select * From
DataSet Ds = new DataSet();
SDA.Fill(Ds);
GridView1.DataSource = Ds;
GridView1.DataBind();
Con.Close();
}
Hope this will be helpful...