fatch productname form selected row.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nityaprashant
    New Member
    • Feb 2008
    • 19

    fatch productname form selected row.

    hello..

    i have grid view.. in that template column

    i want to fatch product name form selected row..

    i had done code like below..

    but it fatch all row's product name one by one..
    i want only product name for selected row..

    Dim dgitem As GridViewRow
    For Each dgitem In GridView1.Rows
    a = dgitem.FindCont rol("lblinprodn ame")
    Next

    how can i fatch?

    could u plz help me?

    thnking u in advanced..
  • nityaprashant
    New Member
    • Feb 2008
    • 19

    #2
    Originally posted by nityaprashant
    hello..

    i have grid view.. in that template column

    i want to fatch product name form selected row..

    i had done code like below..

    but it fatch all row's product name one by one..
    i want only product name for selected row..

    Dim dgitem As GridViewRow
    For Each dgitem In GridView1.Rows
    a = dgitem.FindCont rol("lblinprodn ame")
    Next

    how can i fatch?

    could u plz help me?

    thnking u in advanced..

    hi nitya kem chhe

    i know this in c#

    please convert it in to vb.net


    for (int i = 0; i < GridView1.Rows. Count; i++)
    {
    string name =(GridView1.Row s[i].FindControl(tx tFname) as Text Box).Text;
    }

    Comment

    • nityaprashant
      New Member
      • Feb 2008
      • 19

      #3
      hello..

      i had done below logic again..
      but it doesn't give selected row's product name.
      it's gives all row's product name...particul arly last row's product name..

      i need selected row's product name..
      only one row.

      plz help me out..

      who r u?




      Originally posted by nityaprashant
      hi nitya kem chhe

      i know this in c#

      please convert it in to vb.net


      for (int i = 0; i < GridView1.Rows. Count; i++)
      {
      string name =(GridView1.Row s[i].FindControl(tx tFname) as Text Box).Text;
      }

      Comment

      • nityaprashant
        New Member
        • Feb 2008
        • 19

        #4
        it gives index out of range..

        Comment

        Working...