Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13903 | May 13,2004 07:20 AM UTC | May 13,2004 12:13 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
private void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e) { Element el = this.gridGroupingControl1.TableControl.Table.CurrentElement; if(el != null && el is GridAddNewRecord) { this.gridGroupingControl1.Table.AddNew(); Record r = el as Record; int col = this.gridGroupingControl1.TableControl.CurrentCell.ColIndex; int field = this.gridGroupingControl1.TableDescriptor.ColIndexToField(col); int someParentID = 1; r.SetValue("ParentID", someParentID); } }
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.