473,396 Members | 1,683 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,396 software developers and data experts.

What's the best way to offer a fully editable grid?

Hello,

I want to include a facility on a page whereby a grid of values is shown
so the user can edit it. I want it so that all values are available for
editing at all times, I don't want them to have to click on an "edit"
link to do a postback and be able to edit one line, then click OK to
submit it and have to click another "edit" for the next, etc.

I was thinking about using a repeater for this, and using textbox
controls in the <ItemTemplate>. hat way, all the contents of the grid
can be edited without a postback. I guess when the page is posted, I
would have to loop through each item in the repeater, find the controls
and deal with the contents. Is this a sensible way to do it? If not,
what is?

Also, what's the best way to allow them to add a new row to the list? I
was wondering about a separate set of textboxes below the repeater,
where they could enter the info for the new row and then click a button
to have it added. Again, is this a sensible way to do it?

Thanks for any help.

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #1
2 1143
Ily
Use a templatecolumn and within the template column place a textbox or
dropdown list or whatever you need.

This way all your columns will always be editable

Nov 19 '05 #2
>Use a templatecolumn and within the template column place a textbox or
dropdown list or whatever you need.

This way all your columns will always be editable


What advantage does this have over the way I suggested? Making the
columns editable isn't a problem, as even a repeater can have textboxes
in the ItemTemplate. My question was more concerning getting at the data
afterwards.

Thanks for the reply.

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #3

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

Similar topics

8
by: pmud | last post by:
Hi, I have 2 questions: 1. I have an editable data grid with 21 columns. I need to edit only 2 cloumns in this data grid. But when the grid is displayed in Edit mode, all the columns show long...
0
by: mirin | last post by:
Hello, In a Default.aspx page, I need to display an unbound grid with the following editable columns: Name, Location, Phone, Paid, Amount Initially the grid would be empty with only the...
2
by: vinod allapu | last post by:
Hi all, i want to append an empty column to the grid view. Only the appended column should be editable and while displaying the grid the entire column should be in editable mode(not a...
0
Sl1ver
by: Sl1ver | last post by:
i know how to get the id of the current selected row in the grid. but i now would like to know as soon as someone adds a new line ends edit, then my sql executes to load the other grid where id =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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...
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
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,...

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.