Get DataKey property from RadListViewEditableItem

2 posts, 1 answers
  1. Brian
    Brian avatar
    12 posts
    Member since:
    Apr 2012

    Posted 13 Jun 2012 Link to this post

    How can I get the current DataKey property from a RadListViewEditableItem object?
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jun 2012 Link to this post

    Hi Brian,

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

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

    Hope this helps.

  3. DevCraft R3 2016 release webinar banner
Back to Top