Click here to Skip to main content
15,902,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
Im trying to display data into radgrid(ie in telerik).i have used data adapter and dataset to fill data...i have autogenrated edit and delete buttons too..

when im running code its displaying empty tables with edit and delete...its unable to bind data to grid...im getting number of rows as per the table in sql...but unable to populate it with data

Please help me


Thank you
Posted
Comments
Manoj Sawant 26-Feb-15 4:52am    
Please add your code to have a look at it.
Member 11148509 26-Feb-15 4:55am    
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ToString());
SqlDataAdapter da = new SqlDataAdapter("select * from tablename", con);
DataSet ds = new DataSet();
da.Fill(ds, "tablename");
RadGrid_Details.DataSource = ds;
RadGrid_Details.DataBind();
Manoj Sawant 26-Feb-15 4:56am    
Bind the gridview also
RadGrid_Details.DataBind();
Member 11148509 26-Feb-15 4:58am    
Can you be a bit clear????i already binded radgrid
Manoj Sawant 26-Feb-15 5:09am    
RadGrid_Details.DataSource = ds.Tables[0];

Use this..
RadGrid_Details.DataSource = ds.Tables[0];
 
Share this answer
 
Autogeneratedcolumns must be true ....it was false hence table output is empty
 
Share this answer
 

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