Murhaf Sousli
Murhaf Sousli

Reputation: 13296

how do i update progressbar in ObjectListView or XPTable?

i was searching for a listview that can embed some controls like progressbar and i found

  • ObjectListView
  • XPTable
    but im so confused about on which tool should i use for my application .. both of them are different but it seems that XPTable is simple more than ObjectListView

    i choice XPTable but i can't figure out how to update the progressbar . i've read all of the tutorial .. and searched the samples.. there's nothing about updating that progressbar. help please.

    Upvotes: 1

    Views: 1185

  • Answers (1)

    Murhaf Sousli
    Murhaf Sousli

    Reputation: 13296

    i've figured out the solution

    public void UpdateProgressBar(int value)
        {
            if (InvokeRequired)
            {
                this.Invoke(new Action<int>(UpdateProgressBar), new object[] { value });
                return;
            }
            table1.TableModel.Rows[0].Cells[1].Data = value;
        }
    

    Upvotes: 2

    Related Questions