Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 .NET Report Page

Author  Topic 

SamC
White Water Yakist

3467 Posts

Posted - 2002-10-07 : 17:37:36
I've got an ASP (not .NET) report page that lists the rows returned from a SP very neatly.

I plan to rewrite the reports in .NET one day, and have seen a few librarys out there that provide the ability to write line by line, alternating rows, and allow the individual rows to be edited if needed, right on the page.

An free example of a library like this is

http://superexpert.com/default.aspx?id=405

Any feedback on relative merits (demerits?) of any 3rd party datagrid library would be appreciated.

Sam


Edit : Moved to the correct topic area


Edited by - Merkin on 10/07/2002 19:15:08

MichaelP
Jedi Yak

2489 Posts

Posted - 2002-10-07 : 17:52:00
ASP.Net comes with a datagrid to do some similar things. I've not gotten into it too much, but it handles the alternating color thing really well.

I've got the book "ASP.Net Unleashed" by Stephen Walther, and I've been REALLY happey with it.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2002-10-07 : 19:27:42
Thanks for the feedback, but I think the control you're referring to in ASP Unleashed is the same control in the URL I mentioned. I'm pretty sure .NET doesn't include a control to edit fields on the page. A 3rd party control is needed to get the job done.

Sam

Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-10-07 : 19:32:41
Nope, the standard DataGrid can very easily handle editing on ASP.Net pages.

Check out [url]http://www.4guysfromrolla.com[/url], they are up to Part 10 (that's right, TEN) in a series on what you can do with the DataGrid object.



Go to Top of Page

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2002-10-07 : 19:33:31
I second rob's comment. I've written a page and done data editing inside a datagrid. Pretty darn cool!

===============================================
Creating tomorrow's legacy systems today.
One crisis at a time.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-10-07 : 19:37:39
Plus, if you read the blurb on their SuperDataGrid control:
quote:
The SuperDataGrid control extends the standard ASP.NET DataGrid control with built-in logic for sorting, paging, editing and caching database records.
I don't see how they "extended" the functionality with "built-in" logic to do all of those things, they were all built-in to the original DataGrid! I think these guys are trying to sell some snake oil.

Go to Top of Page

joldham
Wiseass Yak Posting Master

300 Posts

Posted - 2002-10-07 : 20:11:03
You can edit row data directly in the datagrid. Another feature is that the edit template does not necessarily need to match the regular item template. For instance, you can list rows horizontally (like you normally would) for the item template and list rows vertically for the editing. Another use of the edit template is to highlight cells (textboxes) that are required with say a light red color.

Jeremy

Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2002-10-08 : 08:32:04
Well I took some straightening out, but this *is* what I asked for.

I'll research the datagrid properties as a first step before going after 3rd party controls.

Thanks,

Sam

Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2002-10-08 : 10:42:58
In ASP.Net Unleashed on page 578 it talks about "Editing Items in a DataGrid Control." It doesn't look super easy to do, but it is doable.

Me personally, I usually have more fields to edit than I show in the grid, so I like to take my users to a different page to edit the entire "object."

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

joldham
Wiseass Yak Posting Master

300 Posts

Posted - 2002-10-08 : 14:04:28
SamC,

If you can post a sample of your code, I would be willing to look at it and either help you out or at least point you in the right direction.

Jeremy

Go to Top of Page
   

- Advertisement -