By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,387 Members | 1,729 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,387 IT Pros & Developers. It's quick & easy.

grid view sorting and paging

P: n/a
hi all,

am using grid view in asp.net 2.0 . My problem is easy but can't get it to
work.

My grid view id = grdContract and am binding grid view using dataset My
dataset returns 5 columns from sql database and I have auto generate columns
= true for grdContract

grdContract.DataSource = ........dataset returned by a function

grdContract.DataBind();

Now I want to to enable sorting on each column header and and also allow
paging. Could you please cause I can't get it to work.

Do i need to have template columns instead ?

pls help

Jul 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"puja" <pu********@hotmail.comwrote in message
news:eG**************@TK2MSFTNGP02.phx.gbl...
hi all,

am using grid view in asp.net 2.0 . My problem is easy but can't get it to
work.

My grid view id = grdContract and am binding grid view using dataset My
dataset returns 5 columns from sql database and I have auto generate
columns = true for grdContract

grdContract.DataSource = ........dataset returned by a function

grdContract.DataBind();

Now I want to to enable sorting on each column header and and also allow
paging. Could you please cause I can't get it to work.

Do i need to have template columns instead ?

pls help
I used this tutorial to get sorting/paging working in my app:
http://pluralsite.com/fritz/webcasts.aspx

Look at lesson 3 (DataBinding), around 20 minutes into it.
Jul 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.