Created
September 26, 2017 20:52
-
-
Save NPS-ARCN-CAKN/7967443d3aefaa43ca297b37fcdf2400 to your computer and use it in GitHub Desktop.
Set up a GridEX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub SetUpGridEX() | |
'create the Janus GridEX | |
Dim MyGridEX As New GridEX | |
With MyGridEX | |
.Name = DT.TableName & "GridEX" | |
.Dock = DockStyle.Fill | |
.DataSource = MyBindingSource | |
.BoundMode = BoundMode.Bound | |
.GroupByBoxVisible = True | |
.Hierarchical = False | |
.NewRowPosition = NewRowPosition.BottomRow | |
.RecordNavigator = True | |
.RetrieveStructure() | |
.GroupMode = GroupMode.Collapsed | |
End With | |
AddHandler MyGridEX.Click, AddressOf GridEX_Click | |
End Sub | |
Private Sub GridEX_Click(sender As Object, e As EventArgs) | |
Dim MyGridEX As GridEX = sender | |
For Each Row As GridEXRow In MyGridEX.GetRows | |
For i As Integer = 0 To Row.Cells.Count - 1 | |
Debug.Print(vbTab & Row.Cells(i).Column.Caption & " " & Row.Cells(i).Value) | |
Next | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment