Home Forums WPF controls Xceed DataGrid for WPF how can i assume the DataGridControl Column data to Progress

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21934 |

    DataGridControl Column get data from DataBase how can i assume the DataGridControl Column data to ProgressBar Value
    <xcdg:Column FieldName=”Progress”
    Title=”Progress”>
    <xcdg:Column.CellContentTemplate>
    <DataTemplate>
    <ProgressBar Value=”{Binding Path=Progress}” />
    </DataTemplate>
    </xcdg:Column.CellContentTemplate>
    </xcdg:Column>

    i mean this code <ProgressBar Value=”{Binding Path=Progress}” /> don’t work the value still is 0.

    Imported from legacy forums. Posted by Olga (had 2108 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    Actually, The data context of the “CellContentTemplate” is the data for the Cell itself… Therefore, all you need to do is:

    <ProgressBar Value=”{Binding Path=.}” />

    Note: For your progress bar to update “real-time” accordingly, you will need the Progress to be a DependencyProperty or the data objects to implement INotifyPropertyChanged

    Imported from legacy forums. Posted by Marcus [Xceed] (had 3945 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.