Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
19632 | Sep 30,2004 01:14 PM UTC | Mar 16,2005 06:21 PM UTC | WinForms | 11 |
![]() |
Tags: GridControl |
bool doOnce = true; private void gridDataBoundGrid3_Enter(object sender, EventArgs e) { if(doOnce && this.gridDataBoundGrid3.Model.RowCount == 1) { doOnce = false; this.gridDataBoundGrid3.Binder.AddNew(); } }
this.gridDataBoundGrid2.CancelUpdate();
line to the code to see if that avoids the error the first time.
>this.gridDataBoundGrid2.CancelUpdate();
>
>line to the code to see if that avoids the error the first time. private void gridDataBoundGrid1_Leave(object sender, EventArgs e) { if(this.gridDataBoundGrid1.Binder.IsEditing) { this.gridDataBoundGrid1.CurrentCell.EndEdit(); this.gridDataBoundGrid1.Binder.EndEdit(); CurrencyManager cm = this.gridDataBoundGrid1.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember] as CurrencyManager; cm.Refresh(); } }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.