468,249 Members | 1,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,249 developers. It's quick & easy.

DataGrid and GridView

In DataGrid and GridView I can't use paging and sorting. I am connected to
database with code, not visual. Can I use paging and sorting if I populate
data to grid with code, or I need to drag and drop connection, dataset,
datatable etc.


Apr 27 '07 #1
3 1361
On Apr 27, 9:30 am, "Toni" <n...@maila.hrwrote:
In DataGrid and GridView I can't use paging and sorting. I am connected to
database with code, not visual. Can I use paging and sorting if I populate
data to grid with code, or I need to drag and drop connection, dataset,
datatable etc.
What do you mean when you say you "can't use paging and sorting"? Are
there errors? Does the paging footer display? Or does .NET reach out
and prevent you from clicking your mouse?

It's just a matter of turning on paging and sorting properties for
that Gridview.

Apr 27 '07 #2
What do you mean when you say you "can't use paging and sorting"? Are
there errors? Does the paging footer display? Or does .NET reach out
and prevent you from clicking your mouse?

It's just a matter of turning on paging and sorting properties for
that Gridview.
Paging and Sorting properties are turned on. In GridView I get error. In
DataGrid there is no reaction. I can click on header captions but nothing. I
have caption for next and previous page but when I click, page is reloaded
but not sorted.
Apr 27 '07 #3
On 27 Apr, 15:01, "Toni" <n...@maila.hrwrote:
What do you mean when you say you "can't use paging and sorting"? Are
there errors? Does the paging footer display? Or does .NET reach out
and prevent you from clicking your mouse?
It's just a matter of turning on paging and sorting properties for
that Gridview.

Paging and Sorting properties are turned on. In GridView I get error. In
DataGrid there is no reaction. I can click on header captions but nothing. I
have caption for next and previous page but when I click, page is reloaded
but not sorted.
Hi Toni

In addition to enabling Paging and Sorting have you defined sort
expressions for the columns? I know that when creating a GridView
using visual tools the sort expression defaults to the column value,
but in non-visual handling the result may be unpredicatable.

HTH

Apr 27 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by TPhelps | last post: by
6 posts views Thread by Scott McDaniel | last post: by
3 posts views Thread by Alex Maghen | last post: by
6 posts views Thread by GaryDean | last post: by
7 posts views Thread by GaryDean | last post: by
5 posts views Thread by rcoco | last post: by
6 posts views Thread by rcoco | last post: by
7 posts views Thread by =?Utf-8?B?cGF0cmlja2RyZA==?= | last post: by
7 posts views Thread by Mark B | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.