Posted 8 September 2017, 11:21 am EST
Hi…
I’m getting an unhadled exception error that i cannot trace down.
the error is…
System.IndexOutOfRangeException: Invalid row index: 1 (must be between 0 and -1)
at FarPoint.Win.Spread.Cells.get_Item(Int32 row, Int32 column)
at FarPoint.Win.Spread.SpreadView.i(Object A_0, EventArgs A_1)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)
n short, the error in being generated by the tooltip (or texttip) timer
when tooltips are enabled for the spread control and the sheets row count is modified.
For example, if you have a sheet with a row count of 100 and then change the row
count to 10, if your mouse is hovering over any row between 11 and 100 the error
will be generated when the toolip or texttip timer fires…
If i make TextTipPolicy.off its working fine… But i want TextTipPolicy.Floating. so please let me know how to resolve this problem…
I am using mousemove code here shown below…
FarPoint.Win.Spread.Model.CellRange cs = this.fpsMatrix.GetCellFromPixel(0,0,e.X, e.Y);
if ((cs.Column < this.fpsMatrixSheet.ColumnCount) &&
(cs.Row < this.fpsMatrixSheet.RowCount))
{
if ((cs.Column != -1) && (cs.Row != -1))
{
this.fpsMatrix.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Floating;
}
else
{
this.fpsMatrix.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Off;
}
}
I can not make TextTipPolicy off… i want that to display test tip…
Please help me on this…
Thanx & Regards
Mathew…