We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the progress bar value based on the cell value in WinForms GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl
Tags: progressbar

To update the progress bar value based on the cell value in grid, use the ProgressValue property of GridProgressBarInfo class in the QueryCellStyleInfo event.


//Event Subscription
 this.gridGroupingControl1.QueryCellStyleInfo += GridGroupingControl1_QueryCellStyleInfo;
//Event Customization
private void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
    if (e.TableCellIdentity == null || e.TableCellIdentity.Column == null)
    if (e.TableCellIdentity.Column.Name == "ProgressBarStatus" && e.TableCellIdentity.DisplayElement.Kind == Syncfusion.Grouping.DisplayElementKind.Record)
        int value;
        if (int.TryParse(e.Style.Text, out value))
            // To set progressbar value based on cellvalue.
            e.Style.ProgressBar.ProgressValue = value;



'Event Subscription
 AddHandler Me.gridGroupingControl1.QueryCellStyleInfo, AddressOf GridGroupingControl1_QueryCellStyleInfo
'Event Customization
Private Sub GridGroupingControl1_QueryCellStyleInfo(ByVal sender As Object, ByVal e As GridTableCellStyleInfoEventArgs)
    If e.TableCellIdentity Is Nothing OrElse e.TableCellIdentity.Column Is Nothing Then
    End If
    If e.TableCellIdentity.Column.Name = "ProgressBarStatus" AndAlso e.TableCellIdentity.DisplayElement.Kind = Syncfusion.Grouping.DisplayElementKind.Record Then
        Dim value As Integer
        If Integer.TryParse(e.Style.Text, value) Then
            'To set progressbar value based on cellvalue.
            e.Style.ProgressBar.ProgressValue = value
        End If
    End If
End Sub



Show the progress bar based on the cell value



C#: Update progressbar value_CS

VB: Update progressbar value_VB


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile