Hi,
I have a DataGrid (called dgSample), where I set IsReadOnly="True".
User can add a new Row, this row must be editable.
So in my model I set a property:
[DefaultValue(false)]
public virtual bool IsNewItem { get; set; }
where user add new row I set this property to true
So in my DataGrid I have:
but the last Row is not editable, why?
Thanks.


Akhil GargRank #772 · 3K reputationPosted Apr 17, 2015, 8:11 AM EDT
Instead of making datagrid readonly you can try it row wise that will work.
Or just remove readonly property i think this will also work.
Roberto Salemi154 reputationPosted Apr 19, 2015, 11:38 PM EDT
I resolved with this way:
- I my model i added:
- In my DataGrid I added this event:
- In the event there is this control:
It works!
Akhil GargRank #772 · 3K reputationPosted Apr 20, 2015, 12:46 AM EDT