Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
11294 | Mar 2,2004 03:18 AM UTC | Mar 2,2004 04:20 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
this.gridDataBoundGrid1.Binder.OptimizeListChangedEvent = true;
If you are using 1.6.1.8, then you will have to handle CurrentCellStartEditing, and explicitly add a DataRow to your DataTable at that point.
private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, CancelEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.RowIndex == this.gridDataBoundGrid1.Model.RowCount) { DataRow dr = this.dt.NewRow(); dt.Rows.Add(dr); } }
> this.gridDataBoundGrid1.Binder.OptimizeListChangedEvent = true;
>
>
>If you are using 1.6.1.8, then you will have to handle CurrentCellStartEditing, and explicitly add a DataRow to your DataTable at that point.
>>private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, CancelEventArgs e) >{ > GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; > if(cc.RowIndex == this.gridDataBoundGrid1.Model.RowCount) > { > DataRow dr = this.dt.NewRow(); > dt.Rows.Add(dr); > } >}
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.