Wednesday, September 2, 2015

How delete a selected row from GridControl in DevExpress

1.Create a new Windows Form Application project.
2.Add Gridcontrol
3.3.On Gridcontrol,Click on Add Project Data Source > Database > Microsoft Access Database File > Choose nwind.mdb from DevExpress Demos 15.1\Components\Data\nwind.mdb



4.click Next to save the Connection String and Select Orders table.
5.Properties>Dock:Fill
6.Run designer and remove unnecessary columns.





7.Properties>Appearance>UseEmbededNavigator:True



8.Events>UseEmbededNavigator>ButtonClick



9.In code add : using DevExpress.XtraEditors;

10.Add  this code:




11.Run the application















No comments:

Post a Comment