aDataGrid解决方案Silverlight [英] aDataGrid solution Silverlight
本文介绍了aDataGrid解决方案Silverlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
代码:
Page1.Xmal
Code :
Page1.Xmal
<sdk:DataGrid Height="211" HorizontalAlignment="Left" Margin="116,195,0,0" Name="dg" VerticalAlignment="Top" Width="846" SelectionChanged="dg_SelectionChanged" />
Page1.Xaml.cs
Page1.Xaml.cs
dg.ItemsSource = e.Result;
通过Wcf服务(从Linq到sql)"
当数据来自sql数据库时,如何从datagrid中删除列
+
我在sqltable中有6个项目,所以我想在每个项目旁边添加购买按钮,我该怎么做?
在此先感谢
"Via Wcf Service (linq to sql)"
How can I remove a column from a datagrid while the data is from sql database
+
I have 6 items in sqltable so i want do add purchase button next to each item how can i do this ?
Thank In advance
推荐答案
检查这些博客
http://www.kunal-chowdhury.com/2011/06/solution- for-binding-silverlight.html [ ^ ]
http://forums.silverlight.net/t/16733.aspx [
check these blogs
http://www.kunal-chowdhury.com/2011/06/solution-for-binding-silverlight.html[^]
http://forums.silverlight.net/t/16733.aspx[^]
--NDK
希望获得帮助:
Hope this help :
<DataGrid AutoGenerateColumns="False" >
<DataGrid.Columns>
<DataGridTextColumn Header="myField" Binding="{Binding myField}" />
</DataGrid.Columns>
</DataGrid>
这篇关于aDataGrid解决方案Silverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文