I have a rather interesting problem to solve, and not sure how would I approach it the best way.
Given such a interface
public interface IDataCursor
{
bool Eof();
bool Next();
bool Prev();
bool First();
bool Last();
int GetColumnCount();
object GetValue(int columnIndex); // return value for a given column from current cursor position
}
which points to a LARGE data structure, and which I need to display in a grid. All of virtual modes do require the Total number of records to be known. This doesn't work on my case. I can only navigate back/forth.
Does anyone know of some kind of DataSource implementation that would implement a similar interface?
None of the existing free or commercial libraries do offer such a possibility, all of them require the Total number of rows.
I tried to calculate the number of visible records for the DataGtidView then somehow navigate through dataset and update the content of the underlying datasource, but data won't display pretty reliable.
Looking for advises, thank you.