2010-08-14 61 views
0

Bllow是我AspxGridview語法.aspx的網格視圖文件上傳

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="Menu_ID" 
       OnCellEditorInitialize="ASPxGridView1_CellEditorInitialize" OnCustomUnboundColumnData="ASPxGridView1_CustomUnboundColumnData"> 
       <Columns> 
        <dx:GridViewCommandColumn VisibleIndex="0"> 
         <EditButton Visible="True"> 
         </EditButton> 
         <NewButton Visible="True"> 
         </NewButton> 
         <DeleteButton Visible="True"> 
         </DeleteButton> 
         <CustomButtons> 
          <dx:GridViewCommandColumnCustomButton Text="Create a Copy" ID="Copy" /> 
         </CustomButtons> 
        </dx:GridViewCommandColumn> 
        <dx:GridViewDataTextColumn Caption="Module_ID" FieldName="Module_ID" UnboundType="Integer" 
         VisibleIndex="1"> 
        </dx:GridViewDataTextColumn> 
        <dx:GridViewDataButtonEditColumn Caption="Target_URL" FieldName="Target_URL" UnboundType="String" 
         VisibleIndex="2"> 
         <PropertiesButtonEdit> 
          <Buttons> 
           <dx:EditButton Text=".." Width="5px"> 
           </dx:EditButton> 
          </Buttons> 
         </PropertiesButtonEdit> 
        </dx:GridViewDataButtonEditColumn> 
        <dx:GridViewDataTextColumn Caption="Menu_ID" FieldName="Menu_ID" UnboundType="Integer" 
         VisibleIndex="3"> 
        </dx:GridViewDataTextColumn> 
       </Columns> 
      </dx:ASPxGridView> 

AspxGridview 編輯/插入模式點擊Target_URL欄按鈕,我想的FileUpload。

回答