如何在列中添加按钮并使该按钮成为AddNewData? [英] How to Add Button in a column and make that button as AddNewData?
问题描述
我只想问一下,如果我想将测试方法"按钮创建为AddNewData按钮,则如何在该按钮上放置代码,以便在单击时它会打开一个 添加新数据屏幕,但它将自动用所选行的数据填充临时姓名"和全名"列.而该列的其余部分为空白,因此我只输入空白列上的数据, 将其另存为新数据.
I just want to ask,What if I want the Test Method button be created as AddNewData button, How to put code on that button, so that when I click it, it will open an Add New Data Screen but it will automatically filled-in the Casual Name and Full Name Column with the data of that selected row while the rest of the column is blank so that what I will only type in is the data on the blank column and save it as new data.
推荐答案
Kentrox嗨
Hi Kentrox
我建议您阅读改进的模态窗口助手类(基于Sheel的文章创建自定义添加或编辑对话框") 怎么做.
I propose you to read Creating a Custom Add or Edit Dialog (Sheel Shah) and then Yann's post Improved Modal Window Helper Class (based on Sheel's Article "Creating a Custom Add Or Edit Dialog") to get idea how to do it.
希望获得帮助
这篇关于如何在列中添加按钮并使该按钮成为AddNewData?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!