hi friends,
in my program datagrid, i add a template column
xmal -
<my:datagrid.columns xmlns:my="#unknown">
<my:datagridtemplatecolumn header="Status" width="110">
<my:datagridtemplatecolumn.celltemplate>
<datatemplate>
<wrappanel name="DG_warpPanel">
<Button Width="50" Height="30" Name="DG_btn_Upload" Click="DG_btn_Upload_Click">
<Image Width="50" Height="26" Source="Image/Tick.png" />
</Button>
<Button Width="50" Height="30" Name="Dg_btn_Remove" Click="Dg_btn_Remove_Click">
<Image Width="50" Height="26" Source="Image/delete.png" />
</Button>
</wrappanel>
</datatemplate>
</my:datagridtemplatecolumn.celltemplate>
</my:datagridtemplatecolumn>
</my:datagrid.columns>
c# code -
dataGrid1.DataContext = from re in MainWindow.mcsEntity.mcs_image
where re.mcs_Image_Code == txt_Code.Text
select new
{
Id = re.mcs_Image_Id,
Image = re.mcs_Image_Image,
Location = re.mcs_Image_LocationMap
};
now it give the output
Status | Id | Image | Location.
but i want Id | Image | Location | Status
I saw one propriety Display Index,. how to set this,.
so give me any idea,.