Fatch Selected Row's Product Name in GridView

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

    Fatch Selected Row's Product Name in GridView

    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?
    =============

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

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