Sorry for the wrong spelling. It should be
'last page'.
Aktually i solved the problem by writing a small if-statement.
GridView1.PageSize = Int16.MaxValue;
float i = GridView1.Rows.Count;
float k = i / 10;
int m = (int)k;
if (m < k)
m = m + 1;
GridView1.PageSize = 10;
GridView1.PageIndex = m;
but i still have the problem, that i want a reference to the last value in my gridview without selecting it first.
Like: gridview1.selectedvalue= max should deliver 306 .
or GridView1.lastindex = i => 306
any ideas?
So long
|