No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: Hi PM312 Actually when you drag control, this creates the five columns provided. So your custom control is correct. I should instead understand how to proceed to add lines. For example, if you assign a datasource starting from a DataTable, it adds the columns declared in the DataTable and as … | |
Re: Hi xuexue, You can try this one If e.RowIndex > 0 AndAlso DGTariffeAssegnate.Rows(e.RowIndex - 1).Cells(1).Value.ToString() = e.Value.ToString() Then Using gridBrush As Brush = New SolidBrush(Me.DGTariffeAssegnate.GridColor), backColorBrush As Brush = New SolidBrush(e.CellStyle.BackColor) Using gridLinePen As Pen = New Pen(gridBrush) e.Graphics.FillRectangle(backColorBrush, e.CellBounds.Left, e.CellBounds.Top - 1, e.CellBounds.Width - 1, e.CellBounds.Height) e.Graphics.DrawLine(gridLinePen, e.CellBounds.Left, e.CellBounds.Top, … |
The End.