Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
720
How can i add UltraProgressBar in Ultragrid programmatically?
posted

Hi,

 

i have this class :

  Public Class DivaObjectDesign
        Inherits DivaObject

        Private _progressBar As ProgressBar

        Public Sub New()
            Me.InitializeProgressBar()
        End Sub

        Public Property ProgressBar() As ProgressBar
            Get
                Return _progressBar
            End Get
            Set (ByVal value As ProgressBar)
                _progressBar = value
            End Set
        End Property

        Private Sub InitializeProgressBar()
            Me.ProgressBar = New ProgressBar
            Me.ProgressBar.Minimum = 0
            Me.ProgressBar.Maximum = 100
            Me.ProgressBar.Value = 50
        End Sub

    End Class

when i bind to the grid, it works but i don't have the progressbar, i have "system.windows.forms.progressbar"

i suppose that i have to inherits from ultragridcell or something like that?

is there a way to avoid telling the grid the type of column, i wish to do this transparently from business objects

 

Thank you,

 

Kind Regards