- PR -

SilverLight2のDataGridについて

1
投稿者投稿内容
未記入
会議室デビュー日: 2009/02/04
投稿数: 8
投稿日時: 2009-02-04 01:44
Vs2008Sp1,SilverLight2で開発しています。

DataGridでバインドしたデータを表示することはできるのですが、
データ数が多い場合に1-10件表示し次へを押したら11-20を表示したりを、
設定だけで出来たりしますか?
Access
ぬし
会議室デビュー日: 2002/04/08
投稿数: 829
投稿日時: 2009-02-04 05:40
DataGridのページングは自分で組み込む必要がありそうですね。

コード:

public Page()

        {

            InitializeComponent();

            //Initialize the page size

            PageSize = 10;

            //Get the desired data

            user = User.Get();

            //Set the TotalRow cout to the number of rows returned for data

            TotalRow = user.Count;

 

            BindGrid(1);

            DoPaging(this.PageSize, TotalRow);

}




↓を参考にしてください。
http://www.longhorncorner.com/UploadFile/nipuntomar/SilverlightDataGrid09272008114205AM/SilverlightDataGrid.aspx
_________________
ASP.NET+Ajaxサンプル集 | JavaScript+Ajaxサンプル集
未記入
会議室デビュー日: 2009/02/04
投稿数: 8
投稿日時: 2009-02-04 10:01
ありがとうございます。
参考になりました。

やはり組み込まないと出来ないんですね。
1

スキルアップ/キャリアアップ(JOB@IT)