<datagridtemplatecolumn width="50" minwidth="20"> <datagridtemplatecolumn.headertemplate> <datatemplate> <!--<textblock text="Manage" fontsize="18" foreground="#FF666666" horizontalalignment="Center" margin="50,0" />--> <stackpanel horizontalalignment="Center" verticalalignment="Center" margin="10,0,0,0"> <checkbox x:name="chkBox_CheckAllStuRow" width="20" height="auto" checked="chkBox_CheckAllStuRow_Checked" xmlns:x="#unknown" /> </stackpanel> </datatemplate> </datagridtemplatecolumn.headertemplate> <datagridtemplatecolumn.celltemplate> <datatemplate> <stackpanel horizontalalignment="Center" verticalalignment="Center"> <checkbox x:name="chkBox_CheckStuRow" width="20" height="20" xmlns:x="#unknown" /> </stackpanel> </datatemplate> </datagridtemplatecolumn.celltemplate> </datagridtemplatecolumn> <datagridtextcolumn header="First Name" width="*" minwidth="100" binding="{Binding f_name}" /> <datagridtextcolumn header="Last Name" width="*" minwidth="100" binding="{Binding l_name}" /> <datagridtextcolumn header="Phone No" width="*" minwidth="100" binding="{Binding phone}" /> <datagridtemplatecolumn width="auto" minwidth="250"> <datagridtemplatecolumn.headertemplate> <datatemplate> <textblock text="Manage" fontsize="18" foreground="#FF666666" horizontalalignment="Center" margin="50,0" /> </datatemplate> </datagridtemplatecolumn.headertemplate> <datagridtemplatecolumn.celltemplate> <datatemplate> <stackpanel orientation="Horizontal" horizontalalignment="Center"> <Button x:Name="btn_ViewStu" Content="View" FontSize="14" HorizontalAlignment="Center" Height="27" Margin="3" Style="{DynamicResource ActiveButtonStyle}" Width="65" Click="btn_ViewStu_Click" /> <Button x:Name="btn_DeleteStu" Content="Delete" FontSize="14" HorizontalAlignment="Center" Height="27" Margin="3" Style="{DynamicResource DangerButtonStyle}" Width="65" Click="btn_DeleteStu_Click" /> <Button x:Name="btn_withDrwStu" Content="Withdraw" FontSize="14" HorizontalAlignment="Center" Height="27" Margin="3" Style="{DynamicResource DangerButtonStyle}" Width="70" /> </stackpanel> </datatemplate> </datagridtemplatecolumn.celltemplate> </datagridtemplatecolumn>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)