Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > dynamically adding edit, update, cancel

Reply
Thread Tools

dynamically adding edit, update, cancel

 
 
Tomk20
Guest
Posts: n/a
 
      09-29-2003
I've figured out how to add an edit button based on a login form but when
the user presses that edit button how to I get 2 buttons (Update & Cancel)
in the same column like it does when setup with the designer?




Private Sub DataGrid1_Init(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.Init

If Session("AdminMode") Then

'Create ID column & add to DataGrid

dgcAdmin.HeaderText = "Admin"

dgcAdmin.ButtonType = ButtonColumnType.PushButton

dgcAdmin.Text = "Edit"

dgcAdmin.CommandName = "Edit"

dgcAdmin.Visible = True

DataGrid1.Columns.AddAt(0, dgcAdmin)

End If

End Sub


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid cancel command does not work when adding new record Julia B ASP .Net Web Controls 2 04-11-2006 12:42 PM
HELP CANCEL CANCEL CANCEL Carmen Rosario Computer Support 7 04-06-2005 11:04 PM
Load User Control Dynamically, Cast object dynamically =?Utf-8?B?UmV6YSBOYWJp?= ASP .Net 1 03-05-2005 12:04 AM
Dynamically Created DataGrid's Cancel/Update Button Not firing Lucas Tam ASP .Net 1 07-30-2004 04:33 PM
dynamically adding edit cancel update Tomk20 ASP .Net Datagrid Control 0 09-29-2003 03:53 PM



Advertisments