|
-
Feb 5th, 2002, 04:16 PM
#1
Question on MSHFlexgrid
Hi all.
I've just been introduced to MSHFlexgrid (thanks to John McKernan) and I have a fiew questions:
- I've set the grid selection mode to "ByRow" (which is exactly what I want) but I can't seem to find a way to block multiple row selection. Is it possible to block multiple selection of rows?
- Also, I've been able to display column headers without too much hassle. Now I'd like for them to remain displayed on top of the window even if I scroll down the list. I was able to do this without too much problems with a Datagrid control. So is this possible with an MSHFlexgrid control as well?
So that's it for now!
Thanks in advance...
-
Feb 5th, 2002, 04:24 PM
#2
Hyperactive Member
use this... if the user selects more than one row then it just forces it back to the first selected row
Private Sub MSFlexGrid1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
If MSFlexGrid1.RowSel <> MSFlexGrid1.Row Then
MSFlexGrid1.RowSel = MSFlexGrid1.Row
End If
End Sub
-
Feb 5th, 2002, 04:27 PM
#3
Hey thanks!
That resolve my first problem!
Anyone for the second? ...
-
Feb 5th, 2002, 04:31 PM
#4
Hyperactive Member
Do you have fixed rows set to 1???? if you want your colum headings to stay you need to set 1 fixed row.
-
Feb 5th, 2002, 04:35 PM
#5
Well..... euh...... no.
(Shame surging within my small humble person that wants to hide under the table...)
Thanks! That resolves it.
-
Feb 5th, 2002, 04:38 PM
#6
Hyperactive Member
-
Feb 5th, 2002, 05:30 PM
#7
You woudn't happen to know how to resize a specific column as run time, would you?
Thanks!
-
Feb 5th, 2002, 05:33 PM
#8
Never mind! Just got it!
Thanks anyway.
-
Feb 5th, 2002, 05:34 PM
#9
Frenzied Member
Hi Alain,
Gald the MSHFlexGrid is working out for you.
To resize a column at run time...
VB Code:
MSHFlexGrid1.ColWidth(1) = 1000
This codes sets the width of column 1 (second column) to 1000 twips. This works for all coumns including fixed columns.
-
Feb 5th, 2002, 05:37 PM
#10
Hi John.
Yes, you bet the MSHFlexgrid is doing the job!
Thanks again.
-
Feb 5th, 2002, 05:38 PM
#11
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|