public int GetPreviousBookmark(int StartIndex)
{
for (int i = StartIndex - 1; i >= 0; i--)
{
Row r = this[i];
if (r.Bookmarked)
return i;
}
for (int i = Count - 1; i >= StartIndex; i--)
{
Row r = this[i];
if (r.Bookmarked)
return i;
}
return StartIndex;
}