如何在Silverlight中查找数据网格中所选项目或列的值 [英] how to find the value od selected item or column in datagrid in silverlight

查看:83
本文介绍了如何在Silverlight中查找数据网格中所选项目或列的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
实际上我想在Silverlight中从datagrid中选择值并将该值传递给下一页.但是我是Silverlight的新手.所以我不知道在datagrid的哪个事件上我可以找到datagrid项或列的值,并且语法如何在该事件中寻找价值.所以请帮助我

表示我想从选择的行或列中获取值并将该值传递给下一页
在此先感谢

hi all
actually i want to pick the value from datagrid in silverlight and pass that value to the next page.but i am new to silverlight .so i don,t know on which event of datagrid i can find the value of datagrid item or column and also syntax how to find value on that event .so please help me

means i want to get the value from datgrid selected row or column and pass that value to the next page
thanks in advance

推荐答案

如果您只需要传递一个或两个值,则可以查看带有查询字符串的导航框架-
If you just need to pass a value or two, you could look at the navigational framework with query string - here[^].


要获取DataGrid数据,请执行以下操作:

由于您是新手,请尝试启动Silverlight应用程序并与DataGrid一起运行.然后,您将立即看到您可以访问所有行数据,因为您提供了这些数据.

您不需要在任何特定事件上访问数据,但是DataGrid.SelectionChanged是您可以使用的数据...
To get the DataGrid data:

Since you''re new, try getting a Silverlight app up and running with a DataGrid. Then you''ll see immediately that you have access to all the row data because you provide that data.

You don''t need to access the data on any particular event, but DataGrid.SelectionChanged is one that you could use...


这篇关于如何在Silverlight中查找数据网格中所选项目或列的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆