?
Solved

How to disable multiselect with MSHFlexgrid or MSFlexgrid

Posted on 2003-04-01
4
Medium Priority
?
830 Views
Last Modified: 2013-12-26
I have several questions about Flexgrids...

1. How can I disable multiselect
2. How to bring the record selecor pointer (>) as a first fixed column (like DataGrid >)
3. How to Center All the items in the Grid including the Header. (As the grid refresh the data are
   becoming left aligned.

Please can anyone help me to solve these problems. Thanks in advance.
0
Comment
Question by:go2abdul
[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
4 Comments
 
LVL 5

Expert Comment

by:avya2k
ID: 8245081
try this

Private Sub Command1_Click()
    MSHFlexGrid1.AddItem ""
    MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Rows - 1, 0) = ">"
End Sub

Private Sub MSHFlexGrid1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
    MSHFlexGrid1.RowSel = MSHFlexGrid1.Row
End Sub

Private Sub gridalign()
    For i = 0 To MSHFlexGrid1.Rows - 1
        For j = 0 To MSHFlexGrid1.Cols - 1
            MSHFlexGrid1.Row = i
            MSHFlexGrid1.Col = j
            MSHFlexGrid1.CellAlignment = 4
        Next
    Next
End Sub

0
 

Author Comment

by:go2abdul
ID: 8247626
i'm doing this right now. but is there any easy way do do that just by selecting property like 'GRD.MultiSelect = False'

if there is no property, can i make my own class to do that? how can i go for that? any idea?
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 9053332
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->PAQ - with points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9143751
Question is PAQ'd and points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

762 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