Answer Posted / venkat
//create datatable
datatable dt = new datatable();
//Create new dataset :
DataSet ds = new DataSet();
ds.table.add(dt);
//Store the dataset directly into view state
ViewState["dsn"]=ds.table[0];
//retrieve the dataset where it required
DataSet ds = (DataSet)ViewState["dsn"];
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is slidemaster?
What language does asp.net use?
what are the ihttphandler and ihttphandlerfactory interfaces ?
How we implement web farm and web garden concept in asp.net?
How to Insert/Add in ASPXgridview
In a Repeater control how one can provide an alternating color scheme ?
How are sessions stored?
What are the asp.net security controls?
What is s2s tracking?
What are the main requirements for caching?
What’s the catch?
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
What is the use of placeholder control?
What is data grid view in asp.net?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?