c# - editable datagrid with object ({int, double}) in each cell and having arbitrary count of columns -


i working on bill logging module using wpf(mvvm) , sqlite.

i have multiple company names (arbitrary count) e.g. acme soft, cyberways, microcore, solotronics , more..

user log each , every company's electricity, dg power, xyz etc units consumption on daily basis. logging data table in db looks like:

logdataid, logcategory(electricity, dg power, xyz etc), consumedunits, dated, companyid 

after data processing, iam able retrieve in datagrid as: bill log data grid image

now want display consumedunits edit functionality too. have tried lots of stuff binding datagrid code behind(against mvvm), datacontextchanged event , tried search solution in vain.

i can use datagridtemplatecolumn if count of companies fixed, not.

so can me in making datagrid useful , editable (in accordance logdataid , value of unitsreading 0 default).


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -