DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 14 May 2007 12:00:49 -0500,    posted on: microsoft.public.dotnet.framework.aspnet.datagridcontrol        back       

Thread Index
  1    Beemer Biker


How to use the "new" command button?   
I have a gridview and discovered that under giidview tasks there are (among 
other things)
Enable Editing
Enable Deleting
Enable Selection

These seem to be duplicated in the CommandField.  For example, if I bring up 
"edit columns" and scroll down to CommandField and add that item, I then get 
the behaviors of "ShowDeleteButton", "ShowEditButton", "ShowInsertButton", 
etc.
Enableing those and also enableing the above 3 gives me duplicate "edit" 
buttons that behave identical.

Clicking on either of the new "edit" buttons changes both of them to 
"update", "cancel".  So can I assume that I should just be using a 
CommandField and not bother with the "Enable Editing" and "Enable Deleting"?

Under "Behavior" there is "ShowInsertButton" and I get a "New" in the last 
column along with the "Edit".  There is no code generated to perform the 
"new".  Googleing I see where people are rolling their own using either a 
footer or a detail

someone here shows how to use a footer to enter stuff
http://www.asp.net/learn/dataaccess/tutorial53vb.aspx?tabid=63
or http://tinyurl.com/35xln8

another person shows how to use a detail view to enter stuff
http://www.dotnetbips.com/articles/c1e0ca90-5f5d-47aa-a739-492b562e810a.aspx
or http://tinyurl.com/28rpm8

    I dont like either of these two although I could use them.  I would have 
to create a lot of detail views, one for each gridview and I got a bunch of 
gridviews in my tabs.

    Is there a way to do an insert right below where I click on "new" and 
then have the gridview go to edit mode where all I got to do is type in the 
values and click on "update"?

  If I use the "detail view" method it seems like I dont even need the "new" 
button, just need to put a single "add" button somewhere and pop up the 
detail view to be filled in.

   Is there a recommended mechanism for using that built in "new" button to 
do an update?


...thanks..


-- 
======================================================================
Joseph "Beemer  Biker" Stateson
http://ResearchRiders.org     Ask about my 99'R1100RT
======================================================================
Date:Mon, 14 May 2007 12:00:49 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us