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

Get DataKey property from RadListViewEditableItem

1 Answer 53 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 13 Jun 2012, 07:53 PM
How can I get the current DataKey property from a RadListViewEditableItem object?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 14 Jun 2012, 05:19 AM
Hi Brian,

Try the following code snippet to get the DataKeyValue of RadListViewEditableItem.

C#:
protected void RadListView1_ItemUpdating(object sender, RadListViewCommandEventArgs e)
  {
     RadListViewEditableItem itm = (RadListViewEditableItem)e.ListViewItem;
     int s = (int)itm.GetDataKeyValue("ProductID");
  }

Hope this helps.

Thanks,
Princy.
Tags
ListView
Asked by
Brian
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or