473,503 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic gridView with editable columns

38 New Member
Hi,
I would like to have a dynamic gridview (number of columns will change depending on project) and I would like to be able to change the value in a gridview cell and that the database tables will be updated when the grid view cell is updated. An edit button is too cumbersom for the operator.
Anybody know if this is possible, and if so, do you have a piece of sample for me? Preferrably C# aspx with MySql but anything that can get me further is appreciated.
Oct 20 '08 #1
3 2326
nateraaaa
663 Recognized Expert Contributor
When are you planning on updating your DB with the new information entered in the cell? What action will trigger the DB update?

Nathan
Oct 20 '08 #2
Kurt Jakobsen
38 New Member
Well, I don't know exactly how this can be done, but I was thinking of updating the tables for each time a cell is changed. But in cases where the tables run large that can become a bit sluggish, so a good/better alternative can be to first do all changes needed, across columns and rows and then push an update database button.
The thing is that there are going to be quite a few rows that need update each time and it is too cumbersome to push the edit button for each update.
The operator should be able to tab it's way through the table, update the numbers where needed and then push the update button when all cell changes are completed.

I don't even know if this is possible, but it would be at least twice as fast as having a whole column of edit buttons. If I cannot get this to work, the alternative is probably to parce xl files, which is not a good solution in my mind.
Oct 21 '08 #3
nateraaaa
663 Recognized Expert Contributor
Are you planning on updating the entire DB table with any changes made in the gridview? If you are going to update the database with all of the information in your dataset this task may be easier than you think. See the following link for more information.

Nathan
Oct 21 '08 #4

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

Similar topics

3
13725
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....
4
5335
by: GregG | last post by:
Greetings, I have been working with the new GridView control, and while figuring out most of it's idiosyncrasies on my own, have stumbled upon a problem I cannot seem to resolve. We have...
4
2302
by: Patrik | last post by:
hello, based on a client login I call a GridView that presents the appropriate questionnaire for that person. I added three columns (template fields) to the gridview that are radiobuttons. The...
0
1549
by: Frank | last post by:
Hello All, I am working with VS.NET 2005 and I have an editable GridView whose HTML markup is shown below. In short, when the user clicks on the Edit button, one of the textboxes is replaced...
0
1351
by: Frank | last post by:
Hello All, I am working with VS.NET 2005 and I have an editable GridView whose HTML markup is shown below. In short, when the user clicks on the Edit button, one of the textboxes is replaced...
9
15750
by: =?Utf-8?B?c3Jpbml2YXM=?= | last post by:
Hi All, Can anybody please help me, how to access all rows in a grid view if the paging is enabled? If gridview contains 100 rows and pagecount=10, then in the gridview.rows collection, i'm...
1
1292
by: servernet1997 | last post by:
I have a gridview with 4 columns. Two of the columns are read-only and two are editable. The two editable columns are listboxes leveraging an ObjectDataSource. The first listbox is populated from a...
4
9248
by: Steve Kershaw | last post by:
Hi, I have a gridview with an UpdateQuery() that's fired when the user edits/updates a row. The problem lies in the fact that every cell in the edited row shows up as editable even though one...
14
15042
by: agamoto | last post by:
hello guys, i don't know if this is the right tread to post but i have the following problem: i've built a dynamic gridview in run time because the gried values (columns, headers, etc) are...
0
7205
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
7093
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
7287
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
7348
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
7006
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...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.