c# - Grid with empty rows in MVVM -
i want have excel grid empty rows(n-number of rows). gridview bound collection of m number of model objects. if user enters new data empty row new model object must added bound collection.
everyone suggesting introduce empty model objects collection create empty rows, last comment said don't want empty rows in model. having viewmodel
allow do. viewmodel
contains display collection can have additional empty model objects still not persist them model
layer. key viewmodel
collection not same model
collection.
if ever need load data screen , keep was, need persist row number each model object , can insert empty model objects needed.
Comments
Post a Comment