网格视图更新 [英] grid view updation

查看:66
本文介绍了网格视图更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Silverlight网格视图中,我在列中输入一些值.当我单击更新按钮时,数据将在数据库中更新.
请给我源代码.

In Silverlight grid view I enter some values in columns. When I click the update button the data will be update in database.
Please give me the source code.

推荐答案

好吧,这是您要尝试的非常基本的操作.如果您尝试过,那么肯定会成功,因为有很多文章和教程也对此进行了解释.

但是,您没有尝试过.相反,您在这里需要代码. ``给我...''哎呀!不是正确的方法....

这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

尝试一下,告诉您是否遇到问题.
成员将很乐意为您提供帮助


现在,
使用Update命令,将其捕获在ItemCommand中,然后根据所需的行使用它的值并在DB中对其进行更新.立即尝试!
Well, it''s a very basic thing that you are trying to do. If you have tried then surely you would had succeeded in doing it as there are lots of articles and tutorials too explaining the same.

But, you havn''t tried. Instead you demand code here. ''Give me...'' Oops! not the right way....

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this


For now,
Use Update command, trap that in ItemCommand and then based on the row that you need, use the values of it and update it in DB. Try now!


没有人会为您提供实现此任务的源代码.
Silverlight不直接支持Ado.Net,因此您将需要使用实体框架或Web服务来更新数据库.
No one will give you the source code to achieve this task.
Silverlight does not support Ado.Net directly, so you will need to use either the Entity Framework or Web services to update your database.


这篇关于网格视图更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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