devexpress gridview delete button/edit

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

devexpress gridview delete button/edit

 
0
  #1
Jan 9th, 2009
hi,

how can i add a button to delete/edit a row in gridview which takes its data from database ?

thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: devexpress gridview delete button/edit

 
0
  #2
Jan 9th, 2009
you code it in the button click event
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: devexpress gridview delete button/edit

 
0
  #3
Jan 9th, 2009
hey I'll even go one step further

  1. Private Sub btnDelete_Click(ByVal sender As System.Object, _
  2. ByVal e As System.EventArgs) Handles btnDelete.Click
  3. If Not DataGridView1.CurrentRow.IsNewRow Then
  4. DataGridView1.Rows.Remove(DataGridView1.CurrentRow)
  5. End If
  6. End Sub

but it's not my code - it popped up by googling what you want

http://www.vb-helper.com/howto_2005_...elete_row.html
Last edited by rapture; Jan 9th, 2009 at 1:49 pm.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: devexpress gridview delete button/edit

 
0
  #4
Jan 12th, 2009
thank you both i will try it now. but one question how do i insert a button for each row in gridview?
Last edited by sam1; Jan 12th, 2009 at 5:35 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: devexpress gridview delete button/edit

 
0
  #5
Jan 12th, 2009
^^^^ AnyOne on this please
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: devexpress gridview delete button/edit

 
0
  #6
Jan 12th, 2009
I've not done this myself, I did find some things by searching . . .

I googled gridview embed a button for each row


looks like you're going to use itemtemplate to do this
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC