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

[Solved] problem getting the values of the row for deletecommand

0 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
newbie
Top achievements
Rank 1
newbie asked on 02 Apr 2008, 06:05 PM
I want to extract the values of the selected row when the delete command is fired.
I am using automatic insert/update/delete using stored procedures.

I want to do something like this - this is what I am doing in my update command.

protected

void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)

{

Hashtable newValues = new Hashtable();

e.Item.OwnerTableView.ExtractValuesFromItem(newValues, (

GridEditableItem)e.Item);

UpdateTable(tableName, (

string)((GridEditableItem)e.Item).SavedOldValues["Product"], (string)((GridEditableItem)e.Item).SavedOldValues["Description"], (string)newValues["Product"], (string)newValues["Description"]);

RadGrid1.Rebind();

}




No answers yet. Maybe you can help?

Tags
Grid
Asked by
newbie
Top achievements
Rank 1
Share this question
or