Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16001 | Jul 2,2004 07:30 AM UTC | Aug 20,2004 09:34 AM UTC | WinForms | 8 |
![]() |
Tags: GridControl |
private void menuItem2_Click(object sender, System.EventArgs e) { //insert if(this.mouseDownRow > -1 && this.mouseDownCol > -1) { int position = this.gridDataBoundGrid1.Binder.RowIndexToPosition(mouseDownRow); this.gridDataBoundGrid1.BeginUpdate(); DataRow dr = dt.NewRow(); this.dt.Rows.InsertAt(dr, position); this.dt.AcceptChanges(); this.gridDataBoundGrid1.EndUpdate(); } } private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) { dt.AcceptChanges(); }
private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) { if(this.dt.Rows.Count > 0) dt.AcceptChanges(); }
>private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) >{ > if(this.dt.Rows.Count > 0) > dt.AcceptChanges(); >} >
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.