473,414 Members | 2,030 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,414 software developers and data experts.

Datagrids or Table Input

Daxthecon
I recently got a job where I would be working with vb and ASP.NET Well the ASP.NET expert got a new job not much after I just started. So I am forecfully learning ASP on my own.

To the matter at hand. I want to create a page based off of an existing page that is built on tables. One particular table looks to just be a data grid. It's really good and I don't feel that I'll be able to do that well so early in the game. It's flawlessly put into the table and extends another row when the "Add another Row" button is clicked. What it's supposed to do is Auto Number the beginning Column and then you have to put in an item's name. Then a description of what it is. Then How many, then how much, and then the last column tells you the total of the item(s). After that if you need more you click "Add another Row" and it drops the table down for another row and you do it again. I know how to force the numbers to add and fit format so that the user knows how much and doen't have to hastle with decimals unless needed. I also know how to make them write to a database via VB. Where I am lost as is this...

1. Do I create a datagrid and have it right to a SQL database OR do I use forms on a table to create a database table to write too(There is a followup page to be able to see what was put it for the Dept. Head to approve the purchse but I'll ask about that another time)?

2 After I select that if it is forms on a table that create a table in a SQL db will this cause a ton of tables to be created everytime there is one created and will they be editable if so?

3. If it is a data grid. How do I get it to show and how do I get it to become usuable for the page to and read from including the use being able to see the grid(as of right now it doesn't want to show and I have spent 2 days on it. I feel like it was time to seek help)?

4. Or am I doing it wrong. Which is completely possible as I am borderline beginner with ASP.NET?

Need some guidance guys. Would appreciate the help. If there is anymore clarification needed please feel free to email me via my profile. :-)
Jul 1 '08 #1
2 1075
DrBunchman
979 Expert 512MB
Hi Daxthecon,

So you want to display a table based on some query to your database and be able to add new rows to it. Have I understood you correctly?

The DataGrid control will certainly be the easiest way to implement this - how far have you got? Have you checked out any tutorials on using a DataGrid? This one by Scott Mitchell is excellent.

I suggest you go through that from the beginning to get a good understanding of how the control works and come back here with any questions you might have. Some examples of your code would be useful when doing so.

Hope this helps,

Dr B
Jul 2 '08 #2
Hi Daxthecon,

So you want to display a table based on some query to your database and be able to add new rows to it. Have I understood you correctly?

The DataGrid control will certainly be the easiest way to implement this - how far have you got? Have you checked out any tutorials on using a DataGrid? This one by Scott Mitchell is excellent.

I suggest you go through that from the beginning to get a good understanding of how the control works and come back here with any questions you might have. Some examples of your code would be useful when doing so.

Hope this helps,

Dr B

Hey Thanks for a reply. I was beginning to think I'd never get one. But I will be sure to check them out. I have no issue with coding at the moment as it's just trying to make it look right so I know where everything is going what it should be doing. That way I can finally go to code without worring I'll have to add stuff later. I will check out the link and if you have any more links I would certainly be VERY interested in seeing them.
Jul 2 '08 #3

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

Similar topics

1
by: keys4worship | last post by:
Here goes... I am very new to programming. I am currenting using Visual Studio C# to connect to SQL db. The db has only one table and two views. I have created 3 datagrids on one page along with 3...
4
by: ree32 | last post by:
I have a placeholder and depending on a user input(a drop downlist) when the user clicks a button I dynamically create a number of datagrids and fill them with data from a database. But the problem...
7
by: erniej | last post by:
as per instructions in the walkthrough, I have managed to create a master/detail relationship between two datagrids. However I have a requirement to apply this to three datagrids and the third...
3
by: Brian H | last post by:
I am looking for working examples of making use or 2 datagrids and one dataset Grid 1 master Display minimul info Grid 2 slave. Disply detail info When the user clicks a row on the master I...
2
by: OHM | last post by:
Windows Forms Controls. Has anyone personally read and recommends a good book which includes good coverage on DataGrids as this seems to be one of the most common problem areas. Regards - OHM
2
by: simchajoy2000 | last post by:
Hi, In the VB.NET code behind ASP.NET, the programmer is able to directly access the columns and rows associated with the datagrid. Why are datagrids in VB.NET window forms so different? The...
3
by: Mark Wiewel | last post by:
hi all, i am a newbie in ASP.NET and i couldn't find the solution to this one: i have a form with three datagrids on it. i would like to align them vertically with a space between each grid of...
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
0
by: Jim | last post by:
OK here's my disclaimer: I'm very new to ASP.NET and posting on Google Groups, so please bear with me and feel free to correct either the way I code or the way I post. I have an ASP.NET page...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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,...

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.