When I started programming I would scour the internet for good examples of code, You usually end up writing most yourself. I began programming <html> in 1999 and used notepad until I found out about Dreamweaver and Visual Studio and then I went crazy making sites. This article will teach the advanced and Intermediate users the great WYSIWYG of the Dreamweaver environment and the power of MX and .Net with a little homemade code to make it all come together for Complex ASP.Net Datagrid ASC/DESC sorting and paging.
Complex Sorting and Paging ASP.Net and DWMX
Step 3
Now we can create the DataGrid:
To create the data grid go to the Menu bar and click:
Insert>ASP.Net Objects>DataGrid
The DataGrid box will pop up:
Make the following changes:
- ID: dgEmployees
- DataSet: Select dsGrid (you just created this)
- Show: like below (this will show 3 records when paging. There is only 9 records in the database so we choose three to show how paging works)
- Navigation: select "Numbered Links to Every Page" (either selection will work here. It is just what you prefer)
- Click "OK"
The datagrid will show up on the page and look like this:
Charles Stratton
I enjoy programming and someday plan on writing a book. I have been developing Enterprise web applications since 1999.
Comments
sorting
Great tutorial !
Charles,
Finally there is someone that can present a ASP.NET tutorial which gives me the 'push' to actually get started with moving to ASP.NET.
Hope you have some more of these tutorials in 'the magic head' covering ASP.NET in DWMX.
Thanks
Thanks - VB .NET examples?
VB Version
Great article...i was able to follow it and convert it to VB .Net, if anyone wants the code for this drop me a line.
Cheers,
Stephen
You must me logged in to write a comment.