GridViewSource PageDataSource

<uc1:Paginat ID="Paginat1" runat="server" />
paginat.list = (IList)materialManager.GetAllMaterial();   //code behind.

           |

           |

           |             
           |                  paginat // Usercontrol
------- |----|

public IList list; // public variable
-----
methods
-----
PageDataSource pds = new PageDataSource();
pds.DataSource = list;
GridViewSource.DataSource = pds;
-----

posted @ 2010-05-18 11:19  greencolor  阅读(149)  评论(0)    收藏  举报