Click here to Skip to main content
14,979,090 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
May you help me, how can i clear this....

ERROR"The IListSource does not contain any data sources."

public void getdata()
{
connection();
query = "DMLgrid_SP";
SqlCommand com = new SqlCommand(query, con);
com.CommandType = CommandType.StoredProcedure;
com.Parameters.AddWithValue("@Action", HiddenField1.Value).ToString();
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(com);
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
con.Close();

}


Error on "Line 44: GridView1.DataBind();"
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900