This project is read-only.

SourceGrid Selection Drawing

Aug 22, 2010 at 8:14 AM

Hi,

I have changed library to version 4.30.

On old version I using this code for selection drawing but now do not work,  example:

       Me.Grid.Selection.Border = DevAge.Drawing.RectangleBorder.NoBorder
       Me.Grid.Selection.Border = DevAge.Drawing.RectangleBorder.RectangleBlack1Width
       Me.Grid.Selection.Border = Me.Grid.Selection.Border.SetDashStyle(System.Drawing.Drawing2D.DashStyle.Dot)

       Me.Grid.Selection.BackColor = Color.Transparent

How I can manage Grid Selection?

Thanks for help

 

 

Aug 23, 2010 at 8:32 AM

Can you please make a standalone example which would demonstrate this?

Aug 23, 2010 at 4:32 PM

an example:

        Private Sub Grid_new()

            Dim MyGrid As New SourceGrid.Grid

            MyGrid.Name = "Grid1"
            MyGrid.OptimizeMode = SourceGrid.CellOptimizeMode.ForRows
            MyGrid.BackColor = System.Drawing.SystemColors.Window
            MyGrid.BorderStyle = Windows.Forms.BorderStyle.FixedSingle
            MyGrid.AutoSize = False
            MyGrid.Location = New System.Drawing.Point(12, 20)
            MyGrid.Size = New System.Drawing.Size(540, 250)
            MyGrid.Selection.EnableMultiSelection = False
            MyGrid.SelectionMode = SourceGrid.GridSelectionMode.Row
            MyGrid.Selection.BackColor = Color.Transparent
            MyGrid.Selection.Border = DevAge.Drawing.RectangleBorder.NoBorder
            MyGrid.Selection.FocusStyle = FocusStyle.RemoveSelectionOnLeave

            ...
            ...code for creating cells e columns
            ...

            Me.Controls.add(MyGrid)

        End Sub

Aug 25, 2010 at 9:17 AM
Edited Aug 25, 2010 at 9:18 AM

Have you looked at example 17?