BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.gridGroupingControl1.Table.CurrentRecordContextChange += new CurrentRecordContextChangeEventHandler(Table_CurrentRecordContextChange); private void Table_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e) { if(e.Action == CurrentRecordAction.EnterRecordComplete) { int index = 1 + e.Table.FilteredRecords.IndexOf(e.Record as GridRecord); int count = e.Table.FilteredRecords.Count; this.label1.Text = string.Format("{0} of {1}", index, count); } }2) Try RowEnter.
this.gridDataBoundGrid1.RowEnter += new GridRowEventHandler(gridDataBoundGrid1_RowEnter); private void gridDataBoundGrid1_RowEnter(object sender, GridRowEventArgs e) { int count = this.gridDataBoundGrid1.Model.RowCount - ((this.gridDataBoundGrid1.Binder.AllowAddNew) ? 0 : 1); this.label2.Text = string.Format("{0} of {1}", e.RowIndex, count); }
If Me.gridGroupingControl1.Table.FilteredRecords.Count > 0 Then Me.gridGroupingControl1.Table.CurrentRecord = Me.gridGroupingControl1.Table.FilteredRecords(0) End If