Skip to content

Instantly share code, notes, and snippets.

@NPS-ARCN-CAKN
Created September 26, 2017 20:52
Show Gist options
  • Save NPS-ARCN-CAKN/7967443d3aefaa43ca297b37fcdf2400 to your computer and use it in GitHub Desktop.
Save NPS-ARCN-CAKN/7967443d3aefaa43ca297b37fcdf2400 to your computer and use it in GitHub Desktop.
Set up a GridEX
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