-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.vb
35 lines (30 loc) · 1.07 KB
/
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
35
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
Imports System.Drawing.Drawing2D
Imports DevExpress.XtraGrid.Views.Grid
Namespace DXSample
Partial Public Class Main
Inherits XtraForm
Public Sub New()
InitializeComponent()
End Sub
Private Sub Main_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
' TODO: This line of code loads data into the 'nwindDataSet.Customers' table. You can move, or remove it, as needed.
Me.customersTableAdapter.Fill(Me.nwindDataSet.Customers)
End Sub
Private Sub myGridView1_CustomDrawGridLine(ByVal sender As Object, ByVal e As CustomDrawLineEventArgs) Handles myGridView1.CustomDrawGridLine
If e.CellInfo IsNot Nothing Then
e.Appearance.BackColor = If(e.CellInfo.RowHandle Mod 2 = 0, Color.BlueViolet, Color.DarkOrange)
Else
e.Cache.FillRectangle(Brushes.CadetBlue, e.Bounds)
e.Handled = True
End If
End Sub
End Class
End Namespace