BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private int counter = 0; private void button1_Click(object sender, System.EventArgs e) { Console.WriteLine("ClickStart " + counter.ToString()); int heightToScroll = this.gridControl1.RowHeights[1]; Rectangle scrollRect = this.gridControl1.ViewLayout.RectangleBottomOfRow( gridControl1.Rows.FrozenCount+1); //insert the row... this.data.Insert(0, NewRow()); //scroll the window this.gridControl1.ScrollWindow(0, heightToScroll, scrollRect, scrollRect, true); //refresh the new row... this.gridControl1.RefreshRange(GridRangeInfo.Row(1), GridRangeOptions.None); //refresh the col headers... (if needed) normally these would not be processed by your QCI this.gridControl1.RefreshRange(GridRangeInfo.Col(0), GridRangeOptions.None); Console.WriteLine("ClickEnd " + (counter++).ToString()); }
Model.ResetVolatileData();
ViewLayout.Reset();
CurrentCell.Refresh();
UpdateScrollBars();