John Topley's Knowledgebase

Prevent Multiple Row Selection In MSHFlexGrid

Friday, 30 May 2003

This Visual Basic code prevents multiple rows from being selected in the Microsoft Hierarchical FlexGrid Control 6.0.

Add this code to the FlexGrid's SelChange() event:

With MSFlexGrid1
  If .RowSel <> .Row Then
    .Row = .RowSel
    .Col = 0
    .ColSel = .Cols - 1
  End If
End With

top | index | previous | next | comments ()

home | archive | kb | media | about | contact | accessibility
Copyright © 2003 - 2005 John Topley. Made with CityDesk.