You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
I need to know what index the current worksheet is in a collection of worksheets.
Here is how I'm kludging it.
I should be able to find an w.MyIndex that would return the sheet
grid.Worksheets[w.MyIndex]==w
private void DrawDataFocusCell ( gl gl )
{
int i = 0;
Worksheet cW = myReoGrid . CurrentWorksheet;
foreach ( Worksheet w in myReoGrid . Worksheets )
{
if ( w == cW )
{
DrawDataFocusCell ( gl , w , i );
return;
}
i++;
}
//DrawDataFocusCell ( gl , myReoGrid . CurrentWorksheet );
}
Offline
The method GetWorksheetIndex of workbook is what you want.
var index = workbook.GetWorksheetIndex(mysheet);
Offline
Pages: 1
Topic closed