2 Replies - 704 Views - Last Post: 25 January 2011 - 07:44 AM Rate Topic: -----

#1 sotospagouras  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 25-January 11

delete button

Posted 25 January 2011 - 07:23 AM

how to make a delete button to delete rows from datagridview in windows forms in C#
Is This A Good Question/Topic? 0
  • +

Replies To: delete button

#2 Somyagupta  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 85
  • Joined: 05-August 10

Re: delete button

Posted 25 January 2011 - 07:27 AM

Just create a button and when the button is clicked run the row delete command

Table.Rows[i].Delete();
where "i" here is the row index.

Hope this helps
Was This Post Helpful? 2
  • +
  • -

#3 sotospagouras  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 25-January 11

Re: delete button

Posted 25 January 2011 - 07:44 AM

thank you very much
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1