I have create a custom DataGridViewProgressbar column. I have defined a Public Class wDataGridViewProgressBarCell:
Public Class wDataGridViewProgressBarCell
Dim pgb As New Wisej.Web.ProgressBar
pgb.Dock = Wisej.Web.DockStyle.Fill
pgb.Margin = New Wisej.Web.Padding(10)
Me.Control = pgb
In DataGridViewProgressbar I have set this:
Public Class wDataGridViewProgressBarColumn
Me.CellTemplate = New wDataGridViewProgressBarCell()
Me.DefaultCellStyle.Padding = New
in DataGridView.CellFormatting event I set the progressbar value for each cell.
Now When I use this column in a binded DatagridView It work fine. All cells show the progressbar.
The issue is that I’m not able to set margin of progressbar insede The cell. Every property of margin or padding I’m use in cells, Columns or progressbar control the result is the same: the progressbar fill the cell whitout margins. The two picture show How now works and how I need it works.
Thanks in advance
Thanks Frank for your suggest.
I saw the discussion, but as I wrote, every attempt to set up padding did not work.
Probably I wrong some thing, but I do not understand where.
I am attaching a small example for greater clarity on what I have done.
Ttank you in advance
you might want to refer to this discussion and the solution that Luca suggested:
Hope that helps.
Please login first to submit.