改变datagrid中的行信息 [英] Altering row information in datagrid

查看:105
本文介绍了改变datagrid中的行信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在创建一个应用程序,我有一个显示业务订单的数据网格。我正在尝试编写代码,当用户选择行/订单然后单击按钮时,订单的状态将更新更改为已交付。我不确定如何去做 - 如何在datagrid中指定要在我的查询中发送到我的MYSQL数据库的行?任何有关此事的建议都将不胜感激。







非常感谢!

Hi everyone,

I am creating a application where I have a datagrid showing orders for a business. I am attempting to write code where,when a user selects a row/order and then clicks a button, the status of the order will be updated changed to delivered. I am unsure how to go about doing this-how do I specify the row in datagrid to send in my query to my MYSQL database? Any advice you can give me on this matter would be appreciated.



Many Thanks!

推荐答案

在您的数据网格中,保留一个名为已传递的列,该列是带有复选框的项模板列。如果用户选中该复选框,请使用javascript进行提交按钮单击。该按钮应隐藏。在isset中(
In your datagrid keep a column called delivered which is a item template column with check box. If the user check the check box, use javascript to make a submit button click. The button should be hidden. In the isset(


_POS [''hiddenbutton''])编写状态更新查询。
_POS[''hiddenbutton'']) write your status update query.


这篇关于改变datagrid中的行信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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