Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting the selected row - mshFlexGrid...
Message
 
To
14/04/2002 21:38:14
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00644875
Message ID:
00644946
Views:
22
>If you have two rows (one fixed and one normal), fixed row is row 0 and normal row is row 1. But you not be able see that in MouseDown event, because MouseRow returns row, containing cell with focus rectangle, which is moved on Click event. Remove code for MouseDown event, restore your first code for Click event and put breakpoint on row with Call myGridHighLight(grdOtherAdd, intRow). When you click on fixed row, intRow is 0, and when you click on normal row, intRow is 1 (if you use your first code: intRow = grdOtherAdd.MouseRow()). This first code works by me fine and i wondered why this code does not work by you.

Yep - this is right... I think I have discovered some else...

The data that is displayed in this grid is child data - the user moves through the parent table and each time the parent primary changes I get a new recordset for the grid... and call this to prevent any data staying displayed once we have moved to the next record..
Set grdOtherAdd.DataSource = rsOtherAdd
'set widths
grdOtherAdd.ColWidth(0, 0) = 0 'primary
grdOtherAdd.ColWidth(1, 0) = 0 'parent
grdOtherAdd.ColWidth(2, 0) = 2400 'location
grdOtherAdd.ColWidth(3, 0) = 2400 'address 1
grdOtherAdd.ColWidth(4, 0) = 2400 'address 2
grdOtherAdd.ColWidth(5, 0) = 2400 'address 3
'set the headings
grdOtherAdd.TextMatrix(0, 0) = ""
grdOtherAdd.TextMatrix(0, 1) = ""
grdOtherAdd.TextMatrix(0, 2) = "Location"
grdOtherAdd.TextMatrix(0, 3) = "Address Line 1"
grdOtherAdd.TextMatrix(0, 4) = "Address Line 2"
grdOtherAdd.TextMatrix(0, 5) = "Address Line 3"
I am just playing around everyway I can - I will crack - thanks so much for you help!
Chris Maiden
Email
Web
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform