Get DataGrid values in asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran2830
    New Member
    • Nov 2009
    • 92

    Get DataGrid values in asp.net

    Hi,

    I am using DataGrid, Now I want to know to get all values from that Datagrid. How can I acheive.



    Thanks in Advance,

    Visweswaran V
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    Use a for...each statement to parse all rows and then use the columncount (-1) to read the text from each cell on the row.

    Steven

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      The DataGrid (or GridView) is bound to a data source of some sort. This Data source could be a DataTable or DataView or something....

      You can work with this data source to access what you need.

      -Frinny

      Comment

      Working...