Showing posts with label Layout Manager. Show all posts
Showing posts with label Layout Manager. Show all posts

Thursday, September 10, 2015

How bind data using Layout Control in DevExpress

1.Create a new Windows Form Application project.
2.Drag LayountControl
3.Properties>Dock:Fill
4.Drag to the "Drop controls here" 4 controls:textedit,pictureedit,memoedit and datanavigator

5.Organize Controls.

6.Rename layoutcontrolitem1 for textedit to : Category
7.For pictureEdit,right click and click Hide Text.
8.Rename layoutcontrolitem3 for memoedit to : Description
9.On pictureedit  right click ,create empty space item ,make it under pictureedit.

10.Binding:add a datasource from Data Source > Database > Microsoft Access Database File > Choose nwind.mdb,select categories table and bind each control:
bind textedit1  categoryname
bind memoedit1 :description
bind pictureedit1 :picture
bind datanavigator1:categoriesBindingSource


11.Run the application.