473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Dynamic table / GridView with non-databound data

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

Sep 18 '06 #1
1 2166
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.

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

*************************************************
Think outside of the box!
*************************************************
"Gregory Gadow" <te******@serv.netwrote in message
news:45***************@serv.net...
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

Sep 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
2
by: dschectman | last post by:
This appears to be a feature of IE JavaScript. I am running IE 6.0 with the latest patches from Microsoft. Are there any workarounds other than re-coding the source HTML to place all the...
1
by: Jason | last post by:
Does anyone know if there is a way, natively, to create a dynamic number of DetailsView controls on a page based on a selection from a GridView? Basically, I have one-to-many relationship between...
0
by: loga123 | last post by:
Hi All, I have a requirement where I need to build a dynamic gridview. I am using asp .net 2.0. I have to display non-key columns of a table in the gridview and make user to be able to...
0
by: K B | last post by:
PLEASE be patient and read this. I believe I've actually reached the end of the Web trying to find the answer! I have an aspx using a MasterPage with a ContentPlaceholder. I have a datatable...
0
by: ssims | last post by:
I've got a GridView that's sorted by a stored procedure with ROW_NUMBER: PROCEDURE dbo.GetCalendarsByStatusIDPaged ( @startRowIndex int, @maximumRows int, @statusID int ) AS
0
by: Tony Hedge | last post by:
Okay I'm back with another issue ;-) Platform is .NET, VB 2005... I created a templace class that I was successfully able to add as a template column to a GridView control - dynamically!!! So...
1
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
i have a GridView which i can Page on (go to page 2,10,...) the thing is that i have a dynamic query which set the GridView from starts on page 1. the thing is that when i start to go over the...
1
by: jimmysjams | last post by:
I'm modifying someone else's code and I have hit a snag. I don't want to rewrite what's already there but I might have to. I have a gridview, in the gridview is a set number of columns that...
1
by: abhi83 | last post by:
Hi , I have a problem hope someone can help. I have created a dynamic view which contains a gridview. This gridview contains a check box column in the Template Field with the help of ITemplate...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.