- 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.
- 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