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.
Glad to see I was able to help :-)
dear Georgi, you are so so so great! you help me too much!!! very very thanks to you...
Hi,
The AddNewRowSettings object is not a FrameworkElement, so it does not participate in DataContext inheritance. Such objects cannot participate in DataContext or ElementName bindings in XAML. You can only bind it to a Static Resource from XAML. The other option is to set the binding from code-behind. I modified your sample to demonstrate how to do that.
Hope this helps,
hi Georgi , hope you can hlep me. thanks.
Dear Georgi, sorry to trouble u again.
Yes, you demo is right. but that is based on key template. If the DataContext comes from the Dependency(using Microsoft.Practices.Unity) or just like my attached file(assign value in the View's constructor), when i click the "Show Me" button(User control SilverlightControl1), there is no change on the grid's "AllowAddNewRow". can you help me?
my Infragistics Silverlight control's version is 10.3, will it affect?