Ask a Question related to ASP.NET General, Design and Development.
-
Yangtsi River #1
using Paging in Datagrid
Hi,
I am adding a paging function to a datagrid control, the datasource is a
DataSet Object. Based on some articles, I just add some attributes to
datagrid, ie.
Allowpaging=true,Pagesize=5,PagerStyle-Mode="numbericPages",
it is nice that it worked , page index appeared.
But when I clicked the page index,no paging effect appeared, on the web
page is the same record as the first view.
I got some conflicting instruction on this,some say u just need add some
attrubutes,since the datagrid support paging itself, while other say u still
need
add some sub for an event on PageindexChanged and rebind the new data again.
who is right? since it support paging,why Can't I use it by just adding
some paging attributes.
Thanx
Yangtsi
Yangtsi River Guest
-
DataGrid paging
DataGrid in Asp.NET, i want to ask if it's possible to set paging appear both in left and right bottom in datagrid. eg fieldA fieldB ... -
DataGrid and Paging
Hello Masters! Anyone can help me with the datagrid, well, the app load a lot of data from DB and it show on the datagrid, and well, I need to... -
Paging a datagrid
Please, i've created a datagrid that allow numbered paging. But when i click over a page that must be called, i get this error: ... -
DataGrid Paging??
I have code that builds a dataset and connects it to a datagrid. I set up paging but something is broke. I can do a pagecount property and it... -
First Datagrid row with paging
Hi, My Datagrid header is a shoe size range and depends on the first datagrid row - first article size range. So, i need to get the first row... -
Benjie Fallar #2
Re: using Paging in Datagrid
on the PageIndexChanged event, add the following line of codes
dataGrid1.currentPageIndex = e.NewPageIndex
dataAdapter1.Fill(myDataset)
dim dv as new DataView
dv = myDataset.Tables(0).DefaultView
dv.sort = e.SortExpression
dataGrid1.dataSource = dv
dataGrid1.dataBind()
"Yangtsi River" <nakhi@sina.com> wrote in message
news:u%23j3pScRDHA.2144@TK2MSFTNGP11.phx.gbl...still> Hi,
> I am adding a paging function to a datagrid control, the datasource is a
> DataSet Object. Based on some articles, I just add some attributes to
> datagrid, ie.
> Allowpaging=true,Pagesize=5,PagerStyle-Mode="numbericPages",
> it is nice that it worked , page index appeared.
> But when I clicked the page index,no paging effect appeared, on the web
> page is the same record as the first view.
>
> I got some conflicting instruction on this,some say u just need add some
> attrubutes,since the datagrid support paging itself, while other say uagain.> need
> add some sub for an event on PageindexChanged and rebind the new data>
> who is right? since it support paging,why Can't I use it by just adding
> some paging attributes.
>
> Thanx
> Yangtsi
>
>
Benjie Fallar Guest



Reply With Quote

