Hi all,in my WinForm, with an UltraGrid, I have a long time consuming method (that starts some SSIS package in the database). Is it possible to using an UltraProgressBar in the WinForm that starts at the user button click, and stops at the end of the method itself?
Thanks in advance.
Typically what you do is execute your time-consuming method on a different thread (you could use the BackgroundWorker component to do this), and then update the value of the UltraProgressBar by setting its Value property using the BeginInvoke method. Note that you must not set the Value property directly from the other thread as you would then be attempting an illegal cross-thread operation, which eventually will cause an exception to be thrown.
Hi Brian,
Can you give me a code example of how to use the UltraProgressBar ?
I have a time-consuming fetch ... and databinding to multiple controls on a WinForm, and I wantthe UltraProgressBar to run while the data is being loaded ... on a seperate thread ?I need example of this IN CODE Thanx in advance,EE
Hi eiki666,
I have already seen something similar in the Infragistics WinForms Samples. On my PC it is in this path:
"C:\Users\Public\Documents\Infragistics\NetAdvantage 2010.1\Windows Forms\Samples\WinEditors\CS\Embeddable Editors in Columns\Editors in Columns.sln"
or in the startmenu: Infragistics -> NetAdvantage 2010.1 -> Windows Forms
Samples (Local) is the pretty comfortable samles launcher
Samples Source code is that what you looking for
In short - insert this in the OnFormLoad handler:
var columns = this.ultraGrid1.DisplayLayout.Bands[0].Columns;
columns["Progress"].EditorControl = new Infragistics.Win.UltraWinProgressBar.UltraProgressBar();
The values in the column should be integers between 0 and 100, or between progressBar's Minimum and Maximum
I have more advanced case: For the progress bars in the column i need not only different percent values, but also different Minimum, Maximum and Text in each row. And also to eventually different Color by 100% or overflow values. I have tried to set progress bar properties in the grid_InitializeRow(...), but it causes all the rows having the Minimum, Maximum and Text of the last row in the table.
My question to Infragistics guys: how to fix it? Would i have right behaviour if i embed the progress bar into EmbeddableEditorContainer or whatever?