Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2006

Tip: Looking for answers? Try searching our database.

Dynamic table / GridView with non-databound data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gregory Gadow - 18 Sep 2006 22:40 GMT
My latest problem: I am converting an ASP script that dynamically
generated a table with radio buttons, presented the table to a web user,
then processed which of the items that the user selected.

I already know that I can't use the table, because Microsoft saw fit not
to preserve the data within dynamic tables. After much poking and
prodding, I have managed to create a view (one of probably hundreds I
will have to create to do our website conversion) that can be bound to
GridView. But... I need to add an element to the effect of "( ) Add new
data." I am uncertain how to insert a row of static, non-databound text
into a databound Grid View. Any suggestions, or am I once again up a
river of solidified waste with insufficient means of locomotion?
--
Gregory Gadow
Cowboy (Gregory A. Beamer) - 19 Sep 2006 00:04 GMT
LOL

You can alter a GridView in the RowDataBound event. Take control of the row
(it will be on the eventargs, aka "e" as Row). You can then add column(s) to
your hearts content. When you submit back, you will have to programatically
grab values off the rows, so be prepared. But, you are not up fecal
tributary without a wide stick.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************

> My latest problem: I am converting an ASP script that dynamically
> generated a table with radio buttons, presented the table to a web user,
[quoted text clipped - 10 lines]
> --
> Gregory Gadow

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.