Results 1 to 2 of 2

Thread: [2005] DataGridView get cell values

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    81

    [2005] DataGridView get cell values

    If I click and drag to select a range of cells on a DataGridView control how can I get at the values stored in the selected cells, thanks.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] DataGridView get cell values

    You get them using the SelectedCells property of your datagridview. This property returns a DataGridViewSelectedCellCollection, you just loop thru it and read the individual cell value.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width