Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

ASP.net C# Accessing DataKey.Value from a non-gridview event handler

  • 12-09-2008 04:05PM
    #1
    Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭


    Hi,

    Is this possible? I have the Row Index for the selected item in the grid. However, my event is not a Gridview event and I need to access the Primary Key of the selected item.

    I wouldn't have thought it difficult but I've spent a full day on this and gotten nowhere.

    Thanks
    John


Comments

  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    John_Mc wrote: »
    Hi,

    Is this possible? I have the Row Index for the selected item in the grid. However, my event is not a Gridview event and I need to access the Primary Key of the selected item.

    I wouldn't have thought it difficult but I've spent a full day on this and gotten nowhere.

    Thanks
    John

    Nevermind, I got it now... think all it took was for me to post on here :rolleyes:


Advertisement
Advertisement