2010-07-15 34 views
0

我試圖在我點擊提交按鈕(自定義)之前在我的編輯表單中找到一個控件,但是它不返回在備忘錄中輸入的任何值,即使我輸入了一些值。這似乎是它的重置。它對任何事都沒有約束力。ASPxGridview編輯表單查找控件

代碼:

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

    MsgBox(Memo.Text.ToString()) 

回答

2

下面是HTML編輯在AspxGridView的DevExpress的例子,但它是相同的。 http://www.devexpress.com/Support/Center/CodeCentral/ViewExample.aspx?exampleId=E296

你在哪裏指定yor 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>