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:
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
Post a Comment