Results 1 to 3 of 3

Thread: MSFLEXGRID problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    5

    Exclamation MSFLEXGRID problem

    i have a problem with flexgrid's in VB6.

    i have a flexgrid that is linked to an MS Access database file via ADODB code.
    the problem is that the flexgrid at run-time shows 2 rows from a specified table within the DB file. i want to be able to click on a row - i.e - the second one (index value = 2) and move it one place up.

    i want to solve this problem by clicking on a command button called 'UP', but i dont know when to start. the code currently looks like this:

    dim selectedrow as integer
    dim endRow as integer

    MSFlexGrid1.RowPosition(selectedrow) =destination

  2. #2

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: MSFLEXGRID problem

    To move the current row up 1



    With Me.MSFlexGrid1
    lngRow = .Row - 1

    'make sure the row is not being moved onto a Fixed Row.
    If lngRow >= .FixedRows Then
    .RowPosition(.Row) = lngRow
    End If
    End With

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