473,473 Members | 1,533 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating a Dynamic Grid

27 New Member
Hi,

I need to create a grid with two columns the first being the id and the second name which should be generated automatically...
I should be able to enter values in the first cell..

Its urgent please reply
Oct 8 '07 #1
5 2046
dmjpro
2,476 Top Contributor
Hi,

I need to create a grid with two columns the first being the id and the second name which should be generated automatically...
I should be able to enter values in the first cell..

Its urgent please reply
Have a look at this

And also this

Debasis Jana
Oct 8 '07 #2
spooky
27 New Member
Hi,

Thanks for the reply but i did not understand what you ment with those liks
Oct 8 '07 #3
dmjpro
2,476 Top Contributor
Hi,

Thanks for the reply but i did not understand what you ment with those liks
Expand|Select|Wrap|Line Numbers
  1. var ref = document.createElement('table');
  2. var row = document.createElement('tr');
  3. row.setAttribute('atr_name','atr_value');
  4. ref.appendChild(row);
  5. .
  6. .
  7. //do the chain ...............
  8. .
  9. .
  10. document.body.appendChild(ref); //finally added to body
  11.  
Debasis Jana
Oct 8 '07 #4
gregerly
192 Recognized Expert New Member
Expand|Select|Wrap|Line Numbers
  1. var ref = document.createElement('table');
  2. var row = document.createElement('tr');
  3. row.setAttribute('atr_name','atr_value');
  4. ref.appendChild(row);
  5. .
  6. .
  7. //do the chain ...............
  8. .
  9. .
  10. document.body.appendChild(ref); //finally added to body
  11.  
Debasis Jana
For this to work properly, I believe you need

Expand|Select|Wrap|Line Numbers
  1. var tbody = document.createElement('tbody');
between your table var and tr var...
Oct 9 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
For this to work properly, I believe you need

Expand|Select|Wrap|Line Numbers
  1. var tbody = document.createElement('tbody');
between your table var and tr var...
That's correct. See Browser Bugs, Quirks and Inconsistencies.
Oct 9 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: SlipperyCat | last post by:
I want to use the property grid to display instances of dynamic types. A problem I'm having is that the property grid is not respecting attributes that are set with SetCustomAttribute. I've taken...
1
by: dschectman | last post by:
I have an interesting issue. I need to implement a dynamic table to mimic a select list. Each time you double click from the master list, a row is added to the list of selected items. The list...
3
by: Darleen | last post by:
I am seeking conceptual here on how to get started with a "3D Matrix" in Access. We run a training center which holds multiple classes in multiple cities at multiple times. So I need to create a...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
9
by: Niels Jensen | last post by:
Hi All, I'm desperately looking for help regarding the following: I need to make a hexmap in it's own scrollable window on a form, when I say hex map I mean a graphical hexagon surrounded by...
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...
3
by: topmind | last post by:
I am generally new to dot.net, coming from "scriptish" web languages such as ColdFusion and Php. I have a few questions if you don't mind. First, how does one go about inserting dynamic SQL...
6
by: Ron M. Newman | last post by:
Hi, I have a problem with dynamically putting dynamic properties on the property grid. My app has no idea what it'll be showing at compile time. How do I dynamically add properties to the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.