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

How to edit selected row of GridView in a DetailsView?

I am not getting any response to my previous question on reusing a
DetailsView to insert and edit the selected row in a GridView.

So I'll ask an even more basic question. Newbie alert! ;) When the user
clicks the Edit link in a GridView, is it common to use a DetailsView to
edit that row instead of putting the GridView into Edit mode and editing the
row in place? I would assume so, because the GridView does not typically
have columns for every field in the record.

If it is common to use a DetailsView to edit, how do you get to it? Do you
put it in another page that you redirect to, or do you do something like I
wanted to do such as put it in a <divtag on the same page as the GridView,
then show it as a popup by settinig its style to "blocked"?

And once you have this in place, can you easily repurpose the DetailsView to
Insert a new record in addition to editing the selected one?

I'm very sure this is one of the first things one would want to do with an
ASP.NET database app, and I'm just not getting it. Help!

Thanks much,
David
Aug 30 '07 #1
2 4360
Are you using Visual Web Developer?
"David Ching" <dc@remove-this.dcsoft.comwrote in message
news:C5***************@newssvr19.news.prodigy.net. ..
>I am not getting any response to my previous question on reusing a
DetailsView to insert and edit the selected row in a GridView.

So I'll ask an even more basic question. Newbie alert! ;) When the user
clicks the Edit link in a GridView, is it common to use a DetailsView to
edit that row instead of putting the GridView into Edit mode and editing
the row in place? I would assume so, because the GridView does not
typically have columns for every field in the record.

If it is common to use a DetailsView to edit, how do you get to it? Do
you put it in another page that you redirect to, or do you do something
like I wanted to do such as put it in a <divtag on the same page as the
GridView, then show it as a popup by settinig its style to "blocked"?

And once you have this in place, can you easily repurpose the DetailsView
to Insert a new record in addition to editing the selected one?

I'm very sure this is one of the first things one would want to do with an
ASP.NET database app, and I'm just not getting it. Help!

Thanks much,
David


Aug 31 '07 #2
"Bgreer5050" <bg********@yahoo.comwrote in message
news:tU*****************@newssvr13.news.prodigy.ne t...
Are you using Visual Web Developer?
I'm using Visual Studio 2005 and Expression Web. But why does this matter?

Thanks,
David
Aug 31 '07 #3

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

Similar topics

0
by: Mike P | last post by:
I am trying to create a simple editable gridview and I can't get my code to work : <asp:GridView ID="GridView1" Width=500px DataSourceID="SqlDataSource1" CellPadding="3" Font-Names="arial"...
1
by: ThomasNexoe | last post by:
Hi there, I quite new to posting in this forum. I have a problem which I truly hope someone can help me out. I have a master/detail page - with a gridview displaying company names, and a...
1
by: Marc | last post by:
Hi, I made a detailsview for inserting records. I also made a gridview for editing and deleting the same records. The keyfield is an autonumbering field in Access (pcnr). My problem is: I can...
0
by: tarscher | last post by:
Hi all, I have a gridview containing the edit functionality. When I use the edit function and click update another validator is triggered. That validator is not attached to the gridview since it...
0
by: Oystein | last post by:
Hi! I've got a aspx page with a textbox, a detailsview and a gridview. In the textbox i enter a jobnumber. If the jobnumber exists in the table, the detailsview shows the columns in the table in...
0
by: luvdairish | last post by:
Controls (in order on page) 1.)GridView - each row is a work order w/ a link for details in the last column 2.)DetailsView - when user clicks on link from above GridView, the details are shown...
1
by: JJ | last post by:
I know its probably a simple answer, but I can't find it... How do you tell if the current row in a gridview is in edit mode? The control doesn't seem to have a 'currentMode' property like...
0
by: yukijocelyn | last post by:
I have experienced a problem here while doing a form for accessing datadbase using MS Access. I'm using the AccessDataSource control, and using Gridview to pull the data from the database. I am able...
1
by: shapper | last post by:
Hello, In have a web page layout with various panels. One panel contains a GridView and other panel contains various TextBox, DropDownList, etc. When I click a a GridView row I make visible...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.