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

Grid data Update

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Angella
Top achievements
Rank 1
Angella asked on 24 May 2012, 03:16 PM
Hi all,
I am updating my grid data using update command. I use edit form template,I want the parent item of the edited item.How can I get this?
Please help.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 24 May 2012, 03:18 PM
Hi,

Try the following code snippet to get the parent item.

C#:
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
{
  GridEditFormItem item = (GridEditFormItem)e.Item;
  string parentitem = item.ParentItem["ColumnUniqueName"].Text;     // you can access the parent item here       
}

Thanks,
Shinu.
Tags
Grid
Asked by
Angella
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or