TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dipke p
1.7k
14
1.5k
Datagridview remove rows
Jan 30 2014 9:05 AM
Hi,
I have a datagridview that is filled with data from a DB.
When i delete a row by pressing the delete button, the row is deleted.
But when i loop through the rows that are in the datagridview, the deleted rows keep showing up in the collection of teh datagrid.
I want to first delete some rows from the datagridview and do an update from the DB after a check if the deleted rows can be deleted.
When i add some rows, there is no problem. the added rows are in the collection of the dataGrid.
1) when i have 4 rows and delete 2 rows the rowcount remains 4.
2) When i have 4 rows and add 2 rows the rowcount coms to 6.
Kind regards
Dipke
Reply
Answers (
2
)
sms from windows forms ?
WinForm: How to use value of one Form in another Form