Hi to all,
I have a Datagrid with ItemSource pointing a set of machine object :
<DataGrid AutogenerateColumns="False" ItemSource={Binding SelectedEntity.Machines} /><DataGrid.Columns><DataGridTextColumn Binding="{Binding MachineName}" Header="Machine name" /><DataGridTextColumn Binding="{Binding IPAddress1}" Header="IP1" /><DataGridTextColumn Binding="{Binding IPAddress2}" Header="IP2" /></DataGrid.Columns></DataGrid>
The Machines Dal-Object contains a set of Machine, the properties of each machine are machinename, ipaddress1, ipaddress2. The problem is that the header it's locked!!
But if I use code below the header unlocked but I do not knowhow to read data:
<DataGrid AutogenerateColumns="False" ItemSource={Binding SelectedEntity} /><DataGrid.Columns><DataGridTextColumn Binding="{Binding MachineName}" Header="Machine name" /><DataGridTextColumn Binding="{Binding IPAddress1}" Header="IP1" /><DataGridTextColumn Binding="{Binding IPAddress2}" Header="IP2" /></DataGrid.Columns></DataGrid>
Any suggestions?
thanks in advance,
Best regards,
CS