Hi,
Im using ProgressBar in a cell of UltraGrid. Below is the code snippet:
editorSettings.DataType = typeof(int);
grdTablesStatus.DisplayLayout.Bands[0].Columns["Progress"].Editor = progressBar;
Im also using a particular ".isl" file to do the Application Styling in which progress Bar's style is also defined. I have also defined StyleSet in that ".isl" file to be applied on the progress bar if it is disabled. This UltraGrid i.e. grdTableStatus is basically used to give the indication of particular files while loading, if there is any error in the file I have to show it visually by disabling it i.e. changing the style of that particular progressbar in that row.
My Question is How can i apply a style set to that progressbar hosted in the cell, without affecting the style of other cells.
I'm not sure I understand your question. Do you mean that you have other ProgressBars in your application that you do not want to style? Or do you just mean that you don't want the styling to affect other, non-progressbar cells?
You can style the UltraProgressBar UIRole in AppStylist and it will affect all of the UltraProgressBar controls and editors in your application.
Hi Mike,
I have other progressBars in my application which have styles applied on and i want to change the style of the progress bar in grid cell without affecting other progressbars.
Remember, i want my other progress bars to be styled differently too. I know it can be done by using Style Sets within "isl" file. If you will look at the code snippet i've posted earlier u'll see that im using PrograssBarEditor which dont have any property to set StyleSets. I know progressBars can have style sets but what about ProgressBarEditors hosted inside Grid Cell.
In simple words my question is "How i can apply styleset to a progressBarEditor hosted in a WinGrid Cell"
Thnks
How are you getting the grid cell to show a ProgressBar? Are you setting the Style on the grid column, creating a ProgressBarEditor in code, or using an UltraProgressBar control as the EditorControl of the column?
I think what you might have to do is put an UltraProgressBar control on the form and assign the EditorControl property of the grid to it. Then set the StyleSetName on the UltraProgressBar control. That way you can single out that one control and style it independently.
If that doesn't work, you might try using the StyleSetName of the grid control itself and styling the ProgressBar in that StyleSet.
Thnks Mike,
OK i'll try and let u know.