Hello experts,
i'm trying to bind IsReadOnly property on xamgrid to a boolean property on my datacontext(ViemModel).
and for some odd reason it wont bind.
i want to block and unblock the columns the editing dynamically
here is a snipet of my ViewModel
private
bool m_isReadOnly = true;
{
get { return m_isReadOnly; }
set{m_isReadOnly = value;
RaisePropertyChanged("IsReadOnly");
}
and in the xaml i do the next binding
<
ig:TextColumn HeaderText="Pressure [m]" Key="Pressure"
IsSummable="False"
IsFixable="False"
IsReadOnly="{Binding Path=IsReadOnly}">
the column can see the properties of my VM but isreadonly wont work when i change the property true/false while running.
any ideas?
Hello,
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks for the fast replay!
i want to use dependency object to bind the readonly property on the xamgrid,
could u please make a simple example on how to do that? both in the code and in xaml, i dont fully understand the example in the link.
thanks in advance!