we have an xamGrid, and set AllowAddNewRow="Bottom", then we can add new row.
however, the system is logined based on different role, how can i hidden the "NewRow" visibility when user who just has read priviledge? we use the MVVM pattern.
thanks.
Hi,
you could hide the AddNewRow by setting the AllowAddnewRow to None. Regarding the MVVM aproach you're using - you could easily bind this prop to your ViewModel class(probably a converter will be required).
HTH,
can it be changed during the runtime, just described in my previous post?
Attached a small sample demonstrating the approach described by Konstantin.
Hope this helps,