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

Grid Alternative - Issues

I have made some progress toward creating very straight-forward UI for
editing a non-hierarchical list of data without implementing a DataGrid. The
UI needs to present the data for editing in textboxes, drop-down lists,
check boxes, and radio buttons. ASP.NET Validation controls need to be part
of this UI as well.

I arranged the editing controls in a user control which I then placed in the
ItemTemplate of a DataList control. I got the visual appearance that I was
after. However, I also ran into a number of issues - like how to populate
each repeating instance of the user control with data from one corresponding
row of data from the data source; and how to programmatically determine
during PostBack which data the user modified so I can then update the
database. While I can get a user control to repeat multiple times when
hosted in a DataList, all of the controls in it (text boxes, etc) all have
the same value for their ID. This is a problem as well.

I would appreciate any suggestions for getting this to work. Maybe I'm
wrong, but I think my remaining hurdles include: (1) populate each instance
of the user control with data from one row in the data source, and (2)
uniquely identify each instance of the user control during postback. I'm
also open to suggestions for alternative ways to get the UI described above
even if not implemented with a user control and DataList. I don't mind
writing a bunch of code if that will be required (working in C#).

Please note that I do not want to implement this functionality in a DataGrid
because (1) grids do not let me have complete control over layout (they
pretty much want to force all of the data-editing controls into one
horizontal row); (2) grids tend to generate gigantic ViewStates; and (3) The
EditItem templates available in grids and DataList controls are hidden until
the user clicks twice on the row - something obvious for those of us who are
technical, but something not intuitive for the end-users of this particular
application. I cannot assume the users will know to double-click anything in
order to get into an edit mode or to see an edit item template. The users
should be able to edit whatever they see - without clicking an "Edit"
button; and only need to click a "Save Now" button to persist their
modifications.

TIA
Nov 18 '05 #1
0 964

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

Similar topics

117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
1
by: Ed | last post by:
hi everyone, maybe someone can give me a hand here. I am working with vb 2005 and i have a gridview that i am loading data from a recordset. I have the recordset returned from the query and i am...
2
by: moondaddy | last post by:
I'm trying to do something real simple. Add a thumb to a grid at the end of a line using c#. the code executes but I dont see the thumb. Can anyone explain what and what I need to do to properly...
7
by: moondaddy | last post by:
I have WPF window and a grid. The grid has several columns and rows. How do I add an object to a specific row and column of the gird using c#? If I use: myGrid.Children.Add(dg); then dg...
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
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...
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
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
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...

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.