Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
4120 | Apr 29,2003 05:14 PM UTC | Apr 30,2003 08:28 PM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_CurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(cc.RowIndex == this.gridDataBoundGrid1.Model.RowCount) { this.gridDataBoundGrid1.Binder.BeginEdit(); this.gridDataBoundGrid1[cc.RowIndex , 1].Text = "defaultcol1"; this.gridDataBoundGrid1[cc.RowIndex , 2].Text = "defaultcol2"; } }
gridDataBoundGrid1.Model.Options.WrapCellBehavior = GridWrapCellBehavior.NextControlInForm
,
there is an event that fires as you tab off the bottom right cell. If you catch this event, you can add a row to the underlying datasource. Then refreshing the grid will show an empty row. Attached is a little sample. 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.