We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,194 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Deleting a datagridview record using a button click event

Hey All

Im using 3 tier design to do my coding. Im having problems deleting a record selected in the grid. I have my method which does the loading of the datagridview in the businesslayer.

Can you please assist me on how to delete a record selected...

Please

2
Contributors
2
Replies
1 Hour
Discussion Span
1 Year Ago
Last Updated
3
Views
orville
Newbie Poster
10 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I think its a simple task. First of all you have to obtain an index of row you want to delete, and use Rows.RemoveAt(row_index) method of dataGridView control to remove that row.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

thanx..

orville
Newbie Poster
10 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0882 seconds using 2.63MB