Saran Jawaban Get a data From Gridview

  • 12 ноября 2010 г. 3:26
     
     

    I am developing a website application.

    Then in my website there is a gridview with 4 columns and only 1 row. And I want to get the value in columns 2 (John Smith).

    <!-- [if gte mso 10]> <mce:style>

    ID

    Name

    Status

    Active

    023

    John Smith

    Student

    True

    So what should I do??

    i have tried many ways, but i still don't find the answer.

    thank you.

Все ответы

  • 2 декабря 2010 г. 1:37
     
     Предложенный ответ С кодом

    I am developing a website application.

    Then in my website there is a gridview with 4 columns and only 1 row. And I want to get the value in columns 2 (John Smith).

    <!-- [if gte mso 10]> <mce:style>

    ID

    Name

    Status

    Active

    023

    John Smith

    Student

    True

    So what should I do??

    i have tried many ways, but i still don't find the answer.

    thank you.

    Hi! You can try
    GridViewContorlName.Rows[0].Cells[1].Text
    Good Luck!
    • Предложено в качестве ответа Radityo Ardi Hernowo 1 июля 2011 г. 11:19
    •