-
Paging data
I'm trying to make a page that will take SQL records and present them as it's done in a search results page (essentially paging data): with links to the previous and next 20 records, plus a count of how many records there are on the current page and also the ability to delete a record off the page. It's a lot of stuff I've never done before and I'm not sure where to begin. Can anyone start me off in the right direction (w/o referencing datagrids)? :confused:
-
whats wrong with datagrid? all that is built in. why re-invent the wheel?
-
It's not that I don't want to use a Datagrid. The thing is I'm not allowed to use Datagrids for work projects. I know Scott Mitchell at '4guysfromrolla' had a great article about using them. I wrote him back for his opinion on this issue, and he suggested I lean on my lead in this case, but no dice. :( So, wheel-reinventing is required where I work.
-
Are you sure the person who said no to Datagrid understands what the DataGrid and a web form control is? Perhaps he is under the impression that the Datagrid is a Windows form ocx type control that is embedded into an IE browser? Is that what he might be thinking? If so, that is not how it works. Not to try to harp on it, but I just dont understand why your project leader would say no. All the Datagrid does is output an html table formatted data for you without having to hand code all that junk.
-
Use the datagrid anyway... if your idiot boss is ignorant enough to say no then I'm sure you won't
have a problem BS-ing him/her.
After all why the heck are you being allowed to use .net?
:rolleyes:
-
No kidding. If you cant use the Datagrid, I would assume he would say no to all the web form controls like the textbox and button and cant make your own web form templates. In which case, might as well go back to ASP classic. :o
Seriously, find out why your boss says no. I just dont see any logical good reason.
-
His main issue is that the presentation to the user is less dynamic on a datagrid; i.e. not enough flexibility in how it looks. We've been using tables w/in tables that are w/o borders, so that there are no visible lines in between rows and columns. It does look nice that way but it's a lot of work on both ends.
Since I told him about the paging feature in datagrids, he seems more open to them now (he know what a datagrid is, he just hasn't really studied them in depth because he hasn't had the time). So now I'm the pointman for datagrids. He says if I can get it to look in a DataGrid like it does now then "Go for it". :D :) :cool:
-
Good so now you can wow him with the flexibility of a datagrid. Before you know it he'll be
bringing you coffee and begging for a decent evauation!
Look into template columns for what you what to accomplish with those embedded tables.
-
And for your information, you can make the datagrid look anyway you want. If you need any specific help, just ask. I bought the book from the guy at 4guysfromrolla, the ASP.NET Data Web Controls book. In that book, he has 3 or 4 different ways you can page the contents with the datagrid. You should really check it out, I thought it was a great book. I will use it for some time to come as a reference book. You could also hand it to your boss to do some reading on the data controls. VERY informative.
-
Fungi: That's funny. :p I'm more of a cocoa man myself though.
hellswraith: Scott Mitchell shamelessly plugged his book to me in his last e-mail, but since you're recommending it as well, I might just break the bank to get it. Thing is at work we've been using the Wrox Press books for our programming needs, and we won't be able to do that anymore now that Wrox's parent is belly up. :eek: Guess it's time to look for new materials.
-
The different ways he presented to page the data, IMO, made the book worth the buy. Go to your local book seller and check it out.