How to disable multiselect with MSHFlexgrid or MSFlexgrid

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.
go2abdulAsked:
Who is Participating?
 
YensidModConnect With a Mentor Commented:
Question is PAQ'd and points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0
 
avya2kCommented:
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
 
go2abdulAuthor Commented:
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
 
GPrentice00Commented:
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
All Courses

From novice to tech pro — start learning today.