I bind entity object to gridcontrol
{
InitializeComponent();
gridControl1.DataContext = from q in myEnt.item
from b in myEnt.item_type
where q.item_type_fk == b.item_type_id
select new { q.item_name, q.item,m_type};
}
which working well. I want to show a related data in a textbox when I click a row in a grid control. How can I do it?I tried this:
<TextBox Name="TextBox3" Text="{Binding Path=item_name}"/>
doesn't work.