Computing.Net > Forums > Programming > MSFlexGrid Control in VB6

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MSFlexGrid Control in VB6

Reply to Message Icon

Name: BelAnWel
Date: March 28, 2003 at 18:25:00 Pacific
OS: 98
CPU/Ram: 256
Comment:

sup guys!

is there a way to determine if the fixed row (grayed area on the left) on an MSFlexgrid is selected? this what i want to do:

- the user enters stuff in an MSFlexgrid (easily done)
- the user clicks the fixed row in effect selects the whole row (automatically done by vb)

now heres the problem:
i need to know if the whole row was selected before i allow the user to delete that row, using RemoveItem. i cant figure out how determine this. i cant find any property or event that would return a value for this.

appreciate the info. thanks in advance.




Sponsored Link
Ads by Google

Response Number 1
Name: DTec
Date: March 29, 2003 at 09:01:16 Pacific
Reply:

I'm still grey on the Flex Grid, but here's what I came up with:

Private Sub MSHFlexGrid1_Click()
With MSHFlexGrid1
Debug.Print .RowSel
End With
End Sub

This subroutine uses the ROWSEL property to return the numeric value of row, whenever the User clicks on any given cell of the flexgrid. This will work in all three Selection Modes (Free, Row, Column).

So you could probably use IF or CASE statements on the MSHFlexGrid1.RowSel property to represent what row the User has selected. On the other hand, if you set the Selection Mode property to "By Row", then this will highlight the entire row when the user clicks anywhere on the grid.

Hope this helps!


0

Response Number 2
Name: BelAnWel
Date: March 29, 2003 at 14:48:34 Pacific
Reply:

im gonna try it right now. thanks DTec


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: MSFlexGrid Control in VB6

Wave files in VB6 www.computing.net/answers/programming/wave-files-in-vb6/5131.html

ActiveX control in VB6.0 www.computing.net/answers/programming/activex-control-in-vb60-/5323.html

WebBrowser Control in VB6 www.computing.net/answers/programming/webbrowser-control-in-vb6/4870.html