-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.vb
34 lines (29 loc) · 979 Bytes
/
Main.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports DevExpress.XtraEditors
Namespace DXSample
Partial Public Class Main
Inherits XtraForm
Public Sub New()
InitializeComponent()
End Sub
Private provider As GroupEditProvider
Private Overloads Sub OnLoad(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
' TODO: This line of code loads data into the 'nwindDataSet.Products' table. You can move, or remove it, as needed.
Me.productsTableAdapter.Fill(Me.nwindDataSet.Products)
provider = New GroupEditProvider(gridView1)
provider.ShowGroupEditorOnMouseHover = True
provider.SingleClick = True
provider.EnableGroupEditing()
End Sub
Protected Overrides Sub OnFormClosing(ByVal e As FormClosingEventArgs)
provider.DisableGroupEditing()
MyBase.OnFormClosing(e)
End Sub
End Class
End Namespace