This is a migrated thread and some comments may be shown as answers.

Get edited rows in a RadGrid

3 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Feb 2015, 07:48 PM
Hi, there!

I have a RadGrid (let's say RadGrid1) with EditMode="Batch". How can I get a DataTable with the modified rows?

Thanks!

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 05 Feb 2015, 02:52 PM
Bump...?
0
Accepted
Pavlina
Telerik team
answered on 09 Feb 2015, 04:36 PM
Hello,

You could use the following approach to get the new values: 
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
    GridBatchEditingEventArgument argument = e.CommandArgument as GridBatchEditingEventArgument;
    Hashtable newValues = argument.NewValues;
    string newFirstName = newValues["FirstName"].ToString();
}

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
David
Top achievements
Rank 1
answered on 10 Feb 2015, 04:29 PM
Thanks a lot, Pavlina! It helped me solve two issues in one :P
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or