private void gridDataBoundGrid1_RowEditing(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) { if(this.gridDataBoundGrid1.EnableAddNew && e.RowIndex == this.gridDataBoundGrid1.Model.RowCount) { Console.WriteLine("RowEditAddnew"); } } private void gridDataBoundGrid1_RowEnter(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) { if(this.gridDataBoundGrid1.EnableAddNew && e.RowIndex == this.gridDataBoundGrid1.Model.RowCount) { Console.WriteLine("RowEnterAddnew"); } }
> private void gridDataBoundGrid1_RowEditing(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) > { > if(this.gridDataBoundGrid1.EnableAddNew && e.RowIndex == this.gridDataBoundGrid1.Model.RowCount) > { > Console.WriteLine("RowEditAddnew"); > } > } > private void gridDataBoundGrid1_RowEnter(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) > { > if(this.gridDataBoundGrid1.EnableAddNew && e.RowIndex == this.gridDataBoundGrid1.Model.RowCount) > { > Console.WriteLine("RowEnterAddnew"); > } > } >
> private void gridDataBoundGrid1_RowEditing(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) > { > if(this.gridDataBoundGrid1.EnableAddNew && e.RowIndex == this.gridDataBoundGrid1.Model.RowCount) > { > Console.WriteLine("RowEditAddnew"); > } > } > private void gridDataBoundGrid1_RowEnter(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e) > { > if(this.gridDataBoundGrid1.EnableAddNew && e.RowIndex == this.gridDataBoundGrid1.Model.RowCount) > { > Console.WriteLine("RowEnterAddnew"); > } > } >
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"; } }