System.Windows.Forms.CurrencyManager.SuspendBinding()

Here are the examples of the csharp api class System.Windows.Forms.CurrencyManager.SuspendBinding() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: MailSystem.NET
Source File: MessageList.cs
public void FilterMessages(FindSettings findSettings)
        {
            this.dataGridView.CurrentCell = null;

            CurrencyManager cm = (CurrencyManager)this.dataGridView.BindingContext[this.dataGridView.DataSource];
            cm.SuspendBinding();

            foreach (DataGridViewRow row in this.dataGridView.Rows)
            {
                MailMessage mailMessage = (MailMessage)row.DataBoundItem;

                if (findSettings.IsMessageFiltered(mailMessage))
                {
                    row.Visible = false;
                }
                else
                {
                    row.Visible = true;
                }
            }

            cm.ResumeBinding();

            this.Invalidate(true);
        }

2. Example

Project: MailSystem.NET
Source File: MessageList.cs
public void FilterMessages(FindSettings findSettings)
        {
            this.dataGridView.CurrentCell = null;

            CurrencyManager cm = (CurrencyManager)this.dataGridView.BindingContext[this.dataGridView.DataSource];
            cm.SuspendBinding();

            foreach (DataGridViewRow row in this.dataGridView.Rows)
            {
                MailMessage mailMessage = (MailMessage)row.DataBoundItem;

                if (findSettings.IsMessageFiltered(mailMessage))
                {
                    row.Visible = false;
                }
                else
                {
                    row.Visible = true;
                }
            }

            cm.ResumeBinding();

            this.Invalidate(true);
        }

3. Example

Project: MailSystem.NET
Source File: MessageList.cs
public void LoadMessages(MessageListType messageListType)
        {
            Facade facade = Faca/n ..... /n //View Source file for more details /n }

4. Example

Project: MailSystem.NET
Source File: MessageList.cs
public void LoadMessages(MessageListType messageListType)
        {
            Facade facade = Faca/n ..... /n //View Source file for more details /n }