1,105,331 Community Members

Deleting a datagridview record using a button click event

Member Avatar
orville
Newbie Poster
10 posts since Jul 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
__avd
Posting Genius (adatapost)
6,703 posts since Oct 2008
Reputation Points: 1,811 [?]
Q&As Helped to Solve: 1,272 [?]
Skill Endorsements: 61 [?]
Moderator
 
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.

Member Avatar
orville
Newbie Poster
10 posts since Jul 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

thanx..

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article