none
How to goto a specific row in datatable RRS feed

  • Question

  • Dear all,

              Suppost I have a datatable with 10 record. Now I want to edit the 7th record in the datatable. How can I go to the 7th row and edit the colomn data in 7th row.

    Thanks.

     

             


    hon123456
    Friday, May 20, 2011 7:18 AM

Answers

All replies

  • Maybe something like that

                 Datatable dt = new datatable();

                 dt.selectedrow= 7.

                 dt.selectedrow("column1") = "abc";

                 dt.selectedrow("column2") = "def";

                


    hon123456
    Friday, May 20, 2011 7:22 AM
  • datatable[6]["YourColumnName"]= "TheSeventRowHasIndexNumberSix";

     


    Success
    Cor
    • Proposed as answer by Carmelo La Monica Friday, May 20, 2011 7:37 AM
    • Marked as answer by Aspen VJ Monday, May 30, 2011 2:03 AM
    Friday, May 20, 2011 7:34 AM