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
    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.

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top