Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Move row in Msflexgrid

Posted on 2003-11-26
3
Medium Priority
?
1,143 Views
Last Modified: 2012-06-27
How to write code for moving row in MSflexgrid?
where i can find the sample code
0
Comment
Question by:cyseng10
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9830216
assume fg is the flexgrid object this will move a row up


    Dim strTemp As String
    If fg.Row > 1 Then
        For i = 1 To fg.Cols - 1
            strTemp = fg.TextMatrix(fg.Row - 1, i)
            fg.TextMatrix(fg.Row - 1, i) = fg.TextMatrix(fg.Row, i)
            fg.TextMatrix(fg.Row, i) = strTemp
        Next i
    End If
0
 
LVL 1

Author Comment

by:cyseng10
ID: 9835510
the sample code working well for move up row. if i want move down row. how the code will be?

how do i apply using mouse to move row up and down when row selected?

0
 
LVL 9

Accepted Solution

by:
bhagyesht earned 300 total points
ID: 9835532
   Dim strTemp As String
    If fgDesign.Row < fgDesign.Rows - 2 Then
        For i = 1 To fgDesign.Cols - 1
            strTemp = fgDesign.TextMatrix(fgDesign.Row + 1, i)
            fgDesign.TextMatrix(fgDesign.Row + 1, i) = fgDesign.TextMatrix(fgDesign.Row, i)
            fgDesign.TextMatrix(fgDesign.Row, i) = strTemp
        Next i
    End If
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Progress

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question