Margin in ProgressBar control inside DatagridViewCell

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

I have create a custom DataGridViewProgressbar column. I have defined a Public Class wDataGridViewProgressBarCell:

Public Class wDataGridViewProgressBarCell
Inherits Wisej.Web.DataGridViewCell

Sub New()
Dim pgb As New Wisej.Web.ProgressBar
pgb.Dock = Wisej.Web.DockStyle.Fill
pgb.Margin = New Wisej.Web.Padding(10)
Me.Control = pgb
End Sub
End Class

In DataGridViewProgressbar I have set this:

Public Class wDataGridViewProgressBarColumn
Inherits Wisej.Web.DataGridViewColumn
Sub New()
Me.CellTemplate = New wDataGridViewProgressBarCell()
Me.DefaultCellStyle.Padding = New
Wisej.Web.Padding(10)
End Sub
End Class

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

  • You must to post comments
0
0

Hi Frank,

I have installed 1.5.43 versione and all works fine
Thank you very much for your support

  • You must to post comments
0
0

Hi Angelo,

sorry for the delay but with the latest Wisej release (1.5.43), just published,
padding for controls in a cell is supported as you have tried to use it.

Best regards
Frank

  • You must to post comments
0
0

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 must to post comments
0
0

Hi Angelo,

you might want to refer to this discussion and the solution that Luca suggested:

https://wisej.com/support/question/datagridview-buttoncolumn-question

Hope that helps.

Best regards
Frank

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.