Greetings All,
I'm currently working on a project where I transfer a rather large database table across the internet. On the form I want to place either a tree or list view, and in a subitem (ListView) I want to add a progress bar. How do I go about embedding a control like a progress bar into either/or/both a TreeView or ListView?
Many thanks!
Jeff
Hi Jeff,
The easiest way to do this is to place an UltraProgressBar control on the form and use the EditorControl property of the grid column, tree column, or ListView SubItemColumn to assign the ProgressBar to the column.
The MinValue/MaxValue on the column determines the range of the progress bar and the value of the cell determines it's current value for each row.
Hi Mike,
is it possible to set different Minimum/Maximum values on each row? Different Labels/BackColors? If yes how to accomplish this? Ive tried to set the properties in the initializeRow handler. But it results that all rows have the same range was set in the last row. Only CurrentValue itself is shown correct.
For the colors, you could create a new UltraProgressBar and assign it to the EditorControl property of the cell. Each UltraProgressBar can have it's own appearance settings for the appearances of the bar.
As for different MinValue and MaxValue, I am not sure if this is supported. If you set the MinValue and MaxValue on the ProgressBar controls and then don't set it on the grid column, it might work, but it may not.
If that doesn't work, then you could hide your "real" column of data and create a new, unbound column in it's place that simply contains an integer and displays the progress bar . You could use InitializeRow to populate this integer column with a value from 0 to 100 based on the value in the real data column to display whatever percentage you want.