Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
XamGrid IsReadOnly won't bind
posted

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;

 

 

 

public bool IsReadOnly

{

 

 

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?

Parents
No Data
Reply Children