Ok, I am using the radgrid to databind to a DataTable and it isn't updating any of the data when the edit form update button is pressed. From what I understand I need to rebind the data when the update button is pressed, however when I do that I am left with an empty grid.
Page load code:
Page load code:
if (!IsPostBack)RadGrid:
{
DataTable dt = new DataTable();
dt.Columns.Add("User");
dt.Columns.Add("Comment");
DataRow dr = dt.NewRow();
dr["User"] = "Name";
dr["Comment"] = "This is a comment";
dt.Rows.Add(dr);
Session.Add("dt", dt);
RadGridComments.DataSource = dt;
RadGridComments.DataBind();
}
<telerik:RadGrid ID="RadGridComments" runat="server" AllowFilteringByColumn="True"and the edit command:
AllowPaging="True" GridLines="None" EnableAjax="true"
AllowAutomaticUpdates="True"
oneditcommand="RadGridComments_EditCommand"
AutoGenerateEditColumn="True" >
<MasterTableView AllowAutomaticUpdates="True">
</MasterTableView>
</telerik:RadGrid>
protected void RadGridComments_EditCommand(object sender, GridCommandEventArgs e)now I want to specify that I am not able to use a SQL database with this project and I am having some problems making my datasource persistent. I am going to be loading content from a website and filling out the radgrid, then when the edit command fires I need to push the info to the website(and then pull and rebind I assume). I am unable to get my simple test code here working and I would appreciate your help. So how do I set the new info from the edit form to my datatable? when using SQL databases it felt like this was done for me.
{
RadGridComments.DataSource = (DataTable)Session["dt"];
RadGridComments.Rebind();
}