Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change line in datagrid control
Message
 
To
08/05/2002 07:39:34
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00653906
Message ID:
00654081
Views:
29
>I need to chage line in a datagrid control.
>fo example i need to insert a value to the first colunm of every line.Anyone can help me?!?

You need to play with the Row property
With grdResult
    For intRow = 0 To .ApproxCount - 1
        .Columns(0).Value = intRow 'Your new value here
        On Error Resume Next
        .Row = .Row + 1
        On Error GoTo 0
    Next intRow
End With
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform