Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am new to WPF MVVM concept. Please kindly help me. I want to use Datagrid for entering the details. Ex: If I select The Item Code in the First column of the Datagrid then it will fetch & get the name of the product, price and UOM details from database. After enter the quantity in that same row after pressing enter total amount will come and next row will create to enter next Item. Please help me It's urgent to finish my task.

1 solution


its actually depend on your stucture !!

you have to bind GridControl with NotifyCollectionChange like observalbleCollection or bindingList

you have to deside the time when you want to add new row to grid control,
at that time when you add to collection it will autometically add row in GridControl

Share this answer
Murali510 2-Jul-14 22:10pm    
Hi Thakkar Vipul,

Thank you for your suggestion. But My Question is "Is it possible to use Datagrid for entering the data?" Briefing: First time I want empty row DataGrid in that suppose if I have 5 columns when I enter text in first column, then it will do some background process with database and fill the remain columns automatically fill and same time one empty row create below for entering next data. Best example of my question is super market billing screen(Actually they are using one textbox, in that textbox they scan the code it will automatically ask quantity & then fill in the Datagrid. But I want that work with in the Datagrid, Is it possible? If yes give me the Idea. Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900