BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
public bool EnsureDataAvailable(int rowIndex) { if (rowIndex >= StartRow && rowIndex <= loadedEndRow) return true; //new code /////////// if(this.AbsRowCount < rowIndex + 200) { this.AbsRowCount += 400; this.grid.Model.ResetVolatileData(); this.grid.UpdateScrollBars(); } //////////////////////// this.ActiveTable = this.LoadAt(rowIndex - this.grid.Model.Rows.HeaderCount - 1); return true; }
this.grid.Model[0, i + 1 + this.grid.Model.Cols.HeaderCount].Text = ....
This assumes the grid has allocated space in its internal data to hold such column information. If you want to use such code, you woul dhave to not make teh colcount virtual (by handling QueryColCount. Instead, you would explicilty set grid.ColCOunt to teh proper value (usually once at teh beginning). This will cause the grid to allocate teh space needed for the above code to work. (The reason it works up to 10 is because the original grid defaulted the ColCount to 10, allocating space for 10 columns.) If you want to have the columns virtual, then you woul dhave to do something else to manage teh headers. Putting them in the grid''s internal data makes it easier to support column moving.