Hi
I am trying to bind "tag" property of a field on xamdatagrid with a property in my view model but it is not being set. Below is the xaml code
<igDP:Field Name="ApprovedByUserId"
Label="{uibase:TextID _ApprovedField}" Tag="{Binding CurrentUserId}"
My view model property is as below:
public string CurrentUserId
{ get { return _currentUserId; } set { _currentUserId = value;
RaisePropertyChanged("CurrentUserId");} }
Please let me know where it is going wrong
thanks
Lakshmi
Hi Lakshmi,
I am just checking if you have any other questions regarding Fields' DataContext and Tag's binding.
Hello Lakshmi,
Thank you for posting!
The behavior you have described is expected as the elements that are not presented in the visual tree, such as the Field of the XamDataGrid, could not be bound to the DataContext. You may want to have a look at Andrew’s last reply in the following forum thread where additional information is provided: http://ko.infragistics.com/community/forums/p/35236/206777.aspx.Please feel free to let me know if you have any questions.