ASPxGridview 编辑表单查找控件

发布于 2024-09-09 04:51:25 字数 291 浏览 0 评论 0原文

我试图在点击编辑表单上的提交按钮(自定义)之前在编辑表单中查找一个控件,但是它不会返回在备忘录中输入的任何值,即使我已经输入了一些值。看来是要重置了它不绑定任何东西。

代码:

Dim Memo As ASPxMemo =   CType(ASPxGridView_BranchQueue.FindEditFormTemplateControl("ASPxMemo_ResubmissionRationale"), ASPxMemo)

    MsgBox(Memo.Text.ToString())

I'm trying to Find a control in my edit form just before I hit the submit button on it(custom), however it isnt returning any value entered in the memo, even though I have inputted some value. It seems like its resetting. Its not binding to anything.

Code:

Dim Memo As ASPxMemo =   CType(ASPxGridView_BranchQueue.FindEditFormTemplateControl("ASPxMemo_ResubmissionRationale"), ASPxMemo)

    MsgBox(Memo.Text.ToString())

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫弦 2024-09-16 04:51:25

这是 AspxGridView 中 HTMLEDitor 的 Devexpress 示例,但它是相同的。
http://www.devexpress.com/Support/Center/ CodeCentral/ViewExample.aspx?exampleId=E296

您在 aspx 文件中的何处指定备忘录。
FindEditFormTemplateControl 方法用于当您要查找的控件是
在 AspxGridView 的 标记中。

例如:

 <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ID">
        <Templates>
            <EditForm>
                <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="71px" Width="170px">
                            </dx:ASPxMemo>
            </EditForm>
        </Templates>

Here is an Devexpress example for HTMLEDItor in AspxGridView, but its the same.
http://www.devexpress.com/Support/Center/CodeCentral/ViewExample.aspx?exampleId=E296

Where do you specify the memo in yor aspx file.
FindEditFormTemplateControl method is used when the control you are looking for control is
in <EditForm> tag of the AspxGridView.

For example:

 <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" KeyFieldName="ID">
        <Templates>
            <EditForm>
                <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="71px" Width="170px">
                            </dx:ASPxMemo>
            </EditForm>
        </Templates>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文