473,770 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Editing a record from a datagrid.

I’m building a small application and I have to build it using asp.net, vb.net
and my database is MSDE. I have a datagrid with a list of customers and that
is working great. I now need to be able to edit and delete these entries.

Having done some reading I realised that there are some built in features
with datagrid that allows you to do this easily directly onto the datagrid.
Unfortunately I have a lot of customer data so this is not possible because
my datagrid would be 4 pages wide (not to user friendly).

So I’m thinking of being able to have a edit hyperlink text next to each
customer record in the datagrid that when clicked takes the user to an update
page, with all their details set out where they can update things through
text fields, drop boxes etc. How do I do this? Any comments and example code
would be very helpful.

Thank you in advance,
geodev

Nov 19 '05 #1
2 1067
I have plenty of samples on editable datagrids (for parent-child
relationships and for including dropdownlists, checkboxes, user controls and
custom controls) You can browse freely through the source codes of the
samples http://www.societopia.net/Samples/
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"geodev" wrote:
I’m building a small application and I have to build it using asp.net, vb.net
and my database is MSDE. I have a datagrid with a list of customers and that
is working great. I now need to be able to edit and delete these entries.

Having done some reading I realised that there are some built in features
with datagrid that allows you to do this easily directly onto the datagrid.
Unfortunately I have a lot of customer data so this is not possible because
my datagrid would be 4 pages wide (not to user friendly).

So I’m thinking of being able to have a edit hyperlink text next to each
customer record in the datagrid that when clicked takes the user to an update
page, with all their details set out where they can update things through
text fields, drop boxes etc. How do I do this? Any comments and example code
would be very helpful.

Thank you in advance,
geodev

Nov 19 '05 #2
Thanks Phillip, some good stuff there.

"Phillip Williams" wrote:
I have plenty of samples on editable datagrids (for parent-child
relationships and for including dropdownlists, checkboxes, user controls and
custom controls) You can browse freely through the source codes of the
samples http://www.societopia.net/Samples/
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"geodev" wrote:
I’m building a small application and I have to build it using asp.net, vb.net
and my database is MSDE. I have a datagrid with a list of customers and that
is working great. I now need to be able to edit and delete these entries.

Having done some reading I realised that there are some built in features
with datagrid that allows you to do this easily directly onto the datagrid.
Unfortunately I have a lot of customer data so this is not possible because
my datagrid would be 4 pages wide (not to user friendly).

So I’m thinking of being able to have a edit hyperlink text next to each
customer record in the datagrid that when clicked takes the user to an update
page, with all their details set out where they can update things through
text fields, drop boxes etc. How do I do this? Any comments and example code
would be very helpful.

Thank you in advance,
geodev

Nov 19 '05 #3

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

Similar topics

2
1743
by: Mark Perona | last post by:
I created an ASP.net form with an editable datagrid on it. I can create new records, and update and delete existing records. The problem I have is that I want a field in the grid to be editible when I'm editing a new record, but disabled when editable an existing record. Any ideas Mark
2
300
by: Mike P | last post by:
I have a datagrid with a 'Delete' column that the user can click on to delete a row in the datagrid. I thought that I would need to have some kind of error handling in case somebody goes into the database table that the datagrid uses and deletes a record while the user is still viewing the record in their datagrid, since if they then press 'Delete' on a record that has since been deleted from the table, a concurrency error should occur. ...
0
951
by: MrMike | last post by:
Hi. In order to successfully Edit a record in my datagrid I must first call the " DataGrid1.EditItemIndex = e.Item.ItemIndex" command and THEN call the SUB that binds my datagrid. If I only call "DataGrid1.EditItemIndex = e.Item.ItemIndex" without subsequently binding my datagrid I get the following error... Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save...
1
1229
by: MrMike | last post by:
I have a sub named Bind("") which binds my a datagrid on my webform. In order to enter edit mode and edit records on this datagrid, I must make a call to Bind("") either before or after I place the DataGrid into edit mode. For example, DataGrid.EditCommand looks like this ... DataGrid1.EditItemIndex = e.Item.ItemIndex Bind("") Without having the Bind("") call within the EditCommand, an exception occurs saying something to the extent...
0
1032
by: jason | last post by:
hi, I have a datagrid in my input form. Using datagrid inplace editing to save data (chinese characters) entered by user. It works as expected on my test record. But, when i started to enter new record, the datagrid textbox.text shows "??" instead of the chinese character.
2
1383
by: jaYPee | last post by:
i'm wondering how can i update the current record in datagrid while still editing the record. cause i have a checkbox in my datagrid and i want to save the record before changing the value of this checkbox to true to enforce referential integrity. i don't have problem changing the checkbox to true if the record/row in my datagrid is already save. the problem is that if it is the 1st time i add record to this datagrid and then update the...
4
2266
by: Jerry | last post by:
Hi, I have an app which retrieves data from a sql server table and displays it on a datagrid. If 2 sessions of this app are running and 2 users try to update the same record at about the same time, one of the apps will yield a concurrency violation error. The app with the error will have a little red error symbol next to the record in the datagrid, and the only way I can make the error go away for now is to restart that session. Is...
3
4093
by: andreabelmonte | last post by:
Hi everybody, i'm developing a win application using .Net C#. I need to show to users a list of records extracted from an Access database, and I want users to modify columns of every record via online editing. Usually i apply this solution in web application, using datagrid control, but I don't know how to do it in windows applications. Can someone help me? Thank you,
0
1309
by: hanusoft | last post by:
This is an example of editing in DataGrid and Default Paging http://www.hanusoftware.com Html Design Code : - <asp:DataGrid id="DataGrid1" DataKeyField="id" runat="server" Height="224px" AutoGenerateColumns="False" PageSize="5" AllowPaging="True"> <Columns> <asp:BoundColumn Visible="False" DataField="id" HeaderText="Category Id"></asp:BoundColumn>
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.