DataTable with 15 records -> GridView PageIndexChange doesn't display the next 5 record

Hi

having a DataTable with 15 records, used as DataSource of a GridView enabled
to manage page of 10 rows, if I click on the second page, I can't see the
next records after firsts 10!

I manage the PageIndexChange event as follow

GridView theGrid = (GridView)sender;

theGrid.PageIndex = e.NewPageIndex;

theGrid.DataSource = dtSource;

theGrid.DataBind();

What's wrong?

Thank u
Fabio
Fabio Mastria [ Do, 03 April 2008 11:01 ] [ ID #1934532 ]

Re: DataTable with 15 records -> GridView PageIndexChange doesn't display the next 5 record

ok solved... it works really...

it was a problem of data in db... nothing

thank to all anyway ^^
Fabio Mastria [ Do, 03 April 2008 11:12 ] [ ID #1934535 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » DataTable with 15 records -> GridView PageIndexChange doesn't display the next 5 record

Vorheriges Thema: Reporting services
Nächstes Thema: Re: Visual Studio 2008 TableAdapters and Transactions