none
How to get Selected list item from a Custom list programatically on Button Click

    질문

  • Hi,

    I have a SPGridView with Buton(ReadMore) and am binding the List Data to this Grid.Now, How to get Selected list item ID from this list on this Button Click ?

    Please help me to resolve this.

    Many Thanks in Advance..!


    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker!

    2012년 3월 12일 월요일 오후 6:39

답변

  • Got the solution, just get the ListItem ID and keep it in Hidden Variable and pass the same will makes the job done... :)

    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker!

    2012년 5월 16일 수요일 오전 9:36

모든 응답

  • SPGridView is inherited from GridView, so you can follow the sample for GridView.

    please look the below links work in the same way as asp.net Gridview.

    http://www.ezzylearning.com/tutorial.aspx?tid=5066444




    MCTS,MCPD Sharepoint 2010. My Blog- http://sharepoint-journey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful


    2012년 3월 13일 화요일 오전 4:05
  • Thanks for the reply.

    But in my case i need to get the ID of the listitem from the List where i have already binded all this listitems to Grid and need to pass this Selecetd ListItem ID to next page on Button_Click.


    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker!


    2012년 3월 14일 수요일 오전 10:13
  • Got the solution, just get the ListItem ID and keep it in Hidden Variable and pass the same will makes the job done... :)

    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker!

    2012년 5월 16일 수요일 오전 9:36