Home Forums WinForms controls Xceed Grid for WinForms How to read cell contents

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13605 |

    Hi

    I wish to read the contents of a cell within a row. What I need to do is loop trough a number of rows that I have selected and read a particular column for each row as it goes through the loop. I have got this far.

    Dim row As Row

    For Each Row In grd.SelectedRows
    return the cell data?????
    Next Row

    So I can loop through the selected rows but am having difficulty in finding a way to return the column contents for that row.

    Any help would be appreciated.

    Thanks

    Imported from legacy forums. Posted by Nick (had 3378 views)

    User (Old forums)
    Member
    Post count: 23064

    I’m not really a VB.NET programmer, but I think it should look like this:<code>For Each row In grd.SelectedRows
    Dim cell As Cell = row.Cells[“col1”]
    Dim value As Object = cell.Value
    Next row</code>

    Imported from legacy forums. Posted by Tommy (had 284 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks I’ll give a go.

    Imported from legacy forums. Posted by Nick (had 3517 views)

    User (Old forums)
    Member
    Post count: 23064

    Can you please tell me how to change the cell content? Is it possible to set cell value?

    Imported from legacy forums. Posted by MONOLISA (had 1119 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.