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

Edit All Function for DataGrid, and Moving the Edit Function in a DataGrid

is there an easy to follow, source code in one document, article that
explains how to create an edit all DataGrid control?
and, I have a DataGrid setup where the client enters information for
each row by clicking Edit-Update for each row. Each row has several
columns, is there anyway to move the Edit function to edit each column
individually for each row in the DataGrid?
I'll try to find an example for what I am talking about and post it
back to the thread.

Nov 19 '05 #1
3 1495
I don't believe you can have this functionality with the DataGrid control.
"Schultz" <sc*****@a2z4u.net> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
an example of a column edit is here:

http://i.domaindlx.com/campus5edu/col_edit.gif

Nov 19 '05 #2
an example of a column edit is here:

http://i.domaindlx.com/campus5edu/col_edit.gif

Nov 19 '05 #3
Schultz, I can't point you to the easy to follow source code, but I'm sure
you can do what you're trying to do.

Skip the built-in edit logic, because that allows for only one edit row, and
all it really does for you is remember the row and give you an easy way to
enter the additional template.

Instead, give them an "edit all" button, and on select rebind all the labels
to text fields, etc. The mechanics are up to you, but easiest might be to
include both the label and the textbox in each cell, and in ItemDataBound set
the visible= of each to on/off as needed. Or, leave the cell empty for
starters, and in ItemDataBound add either a label or a textbox to the cell
(if you do it dynamically though you'll have more work to make sure the
data's there after postback).

I'd suggest something similar for the second part of your question: roll
your own and put an edit button in every cell if you want. Of course, editing
within the grid can get a little hairy with maintaining scroll position,
etc., esp. across browsers, and sometimes you're better off jumping to a
separate form.

hth,

Bill

"Schultz" wrote:
is there an easy to follow, source code in one document, article that
explains how to create an edit all DataGrid control?
and, I have a DataGrid setup where the client enters information for
each row by clicking Edit-Update for each row. Each row has several
columns, is there anyway to move the Edit function to edit each column
individually for each row in the DataGrid?
I'll try to find an example for what I am talking about and post it
back to the thread.

Nov 19 '05 #4

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

Similar topics

8
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3"...
0
by: Mike | last post by:
Hi, I am having problems with my program, the problem is it will not put the datagrid into edit mode. The .aspx page has the following code in it : - <asp:datagrid id="DataGrid2"...
3
by: pmud | last post by:
Hi, I have an ASP.NET application using C# code. I am using a datagrid to display records from a database based on a user input, i.e a user enters a compnay name in text box & when he clicks a...
3
by: Tim::.. | last post by:
Can someone please tell me how I go about preselecting an item in a drop drown list when I click the Edit Command in a datagrid? I have tried the following but it doesn't work for me! I would...
0
by: jinhy82 | last post by:
Hello! I am using DataGrid to display details from Ms Access. Fe features such as Edit, Update and Delete are added, but they did no function. Can anyone help me? Thank you very much!!! For the...
1
by: David Sagenaut | last post by:
Can I set a whole datagrid in edit mode, like a table? I can edit the data in the datagrid. After done, I can click the save button to save the data into a datasousce. I don't want to used the...
1
by: nate axtell | last post by:
In VB .Net I made a custom CheckBox column style (for the Datagrid control) that maps to two DataTable columns , one it uses for the Checked status and the other it uses for the Enabled status. I am...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
2
by: slinky | last post by:
I had a successfully deployed datagrid reading an XML file and showing the data: Private Function MakeDataView() as DataView Dim myDataSet As New DataSet()...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.