Tuesday, 18 August 2015

Delete in WPF Data Grid (Simple Stuff no more code) C#


  • Yes it's really not much confusing as we understand to delete or update the data in datagrid in wpf. Actually while googling i too got much confused why are all using Linq to Sql class or EF for such an easy thing.
  • I thought this code to post because some of the person asked me that is there not any simple way to delete the record from data grid rather than using Linq to Sql Class and EF.
  • Yes you can also do it with stored procedure or either simply firing normal query it's upto you.
  • I will show you one simple way to achieve with stored procedure.
  1. XAML Code:




2. Code Behind :


 

  • This is it.  It's done your record will be deleted. Enjoy. For any query please comment me.
P.S. This code is just for deleting the record.


No comments:

Post a Comment

How To Pass An Array As A Parameter While Calling an ASP.NET Web API C#

Please visit my C# Corner Blog for this, where I have provided better efforts to make this concept more understandable - www.c-sharpcorner....