silverlight datagrid中添加Butten按钮

silverlight datagrid中添加Butten按钮,第1张

概述       <Grid Height="639" Name="grid3" Width="855">                         <Grid.ColumnDefinitions>                             <ColumnDefinition Width="328*" />                             <ColumnDe  

     <GrID Height="639" name="grID3" WIDth="855">
                        <GrID.ColumnDeFinitions>
                            <ColumnDeFinition WIDth="328*" />
                            <ColumnDeFinition WIDth="527*" />
                        </GrID.ColumnDeFinitions>
                        <sdk:DataGrID autoGenerateColumns="False" Height="497" HorizontalAlignment="left" margin="6,10,0" name="dataGrID1" VerticalAlignment="top" WIDth="677" ClipboardcopyMode="Includeheader" GrID.ColumnSpan="2">
                            <sdk:DataGrID.Columns>
                                <sdk:DataGrIDTextColumn header="编号" IsReadonly="True"   Binding="{Binding DGnum,Mode=TwoWay}" />
                                <sdk:DataGrIDTextColumn header="名称" IsReadonly="True" Binding="{Binding DGname,Mode=TwoWay}" />
                                <sdk:DataGrIDTextColumn header="时间" IsReadonly="True"  Binding="{Binding DGtime,Mode=TwoWay}" />

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

DataGrIDTemplateColumn 可以手动添加
                                <sdk:DataGrIDTemplateColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" header="" IsReadonly="True" WIDth="auto" >
                                
                                        <sdk:DataGrIDTemplateColumn.CellTemplate>

                                            <DataTemplate>
                                                <StackPanel OrIEntation="Horizontal" VerticalAlignment="Center">
                                                <button Content="导出" Height="23" HorizontalAlignment="Center" margin="10,0" name="button20" VerticalAlignment="Center" WIDth="40" Click="button17_Click" />

                                                </StackPanel>
                                            </DataTemplate>
                                        </sdk:DataGrIDTemplateColumn.CellTemplate>


                               
                                </sdk:DataGrIDTemplateColumn>

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、这个之间是datagrID中添加Butten按钮
                            </sdk:DataGrID.Columns>

                        </sdk:DataGrID>                         <button Content="恢复选中配置" Height="28" HorizontalAlignment="left" margin="370,39,0" name="button3" VerticalAlignment="top" WIDth="141" FontSize="13" Click="button3_Click_1" GrID.Column="1" />                         <button Content="恢复出厂设置" Height="28" HorizontalAlignment="left" margin="370,144,0" name="button12" VerticalAlignment="top" WIDth="141" FontSize="14" Click="button12_Click" GrID.Column="1" />                         <button Content="删除选中配置" Height="28" HorizontalAlignment="Right" margin="0,89,16,0" name="button16" VerticalAlignment="top" WIDth="141" FontSize="14" Click="button16_Click" GrID.Column="1" />                         <button Content="保存现在设置" Height="29" HorizontalAlignment="left" margin="370,527,0" name="button4" VerticalAlignment="top" WIDth="141" FontSize="14" Click="button4_Click" GrID.Column="1" />                         <TextBox Height="29" HorizontalAlignment="Right" margin="0,182,0" name="txtBackUp" VerticalAlignment="top" WIDth="141" GrID.Column="1" />                         <sdk:Label Height="28" HorizontalAlignment="left" margin="78,528,0" name="label31" VerticalAlignment="top" WIDth="120" Content="备份现在设置名称:" FontSize="14" GrID.Column="1" />                     </GrID>

总结

以上是内存溢出为你收集整理的silverlight datagrid中添加Butten按钮全部内容,希望文章能够帮你解决silverlight datagrid中添加Butten按钮所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1071097.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存