asp.net - How Grid paging works? -
paging is working fine, the problem is that I do not know how this works, because when I get a break A logger in Point and GetCustomers method, I found out that maximum lights and startRowIndex are always 0, 0.
I have no clue why StartRowIndexParameterName, and MaximumRowsParameterName are created and how they are used if they are used in custom mode, how to enter that mode?
Thanks
& lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div & gt; & Lt; Asp: ObjectDataSource ID = "ObjectDataSource1" runat = "server" SelectCountMethod = "Calculate" SelectMethod = "GetCustomers" TypeName = "Pilots.BLL.Customer" & gt; & Lt; SelectParameters & gt; & Lt; ASP: parameter name = "max rao" type = "int 32" /> & Lt; Asp: parameter name = "startRowIndex" type = "int32" /> & Lt; / SelectParameters & gt; & Lt; / ASP: ObjectDataSource & gt; & Lt; Asp: GridView id = "GridView1" runat = "server" Allow = "true" pageidx = "0" pageicism = "10" datasource id = "objectDateSource 1" & gt; & Lt; / ASP: GridView & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Body & gt; Those 2 criteria are used for custom paging on the gridview.
To determine this page, how many items will be passed to SQL Server to determine which index (startRowIndex) and a gridview page (maximum rouge).
'startRowIndex' will change depending on the gridview page index is the number of rows returning from the method, depending on the fixed value 'maximum rao'.
Comments
Post a Comment