How to replace the text "Remove" by an image

Last post 10-29-2009, 6:47 AM by Jaganr012. 2 replies.
Sort Posts: Previous Next
  •  10-28-2009, 6:28 AM 56740

    How to replace the text "Remove" by an image

    Hi,
     
    I want to replace the text "Remove" by an image button.
     
    <CuteWebUI:UploadAttachments runat="server" InsertButtonStyle-BackColor="#0086BE" TableStyle-GridLines="Both" InsertButtonStyle-CssClass="uplCSS" RemoveButtonText="Delete" TableStyle-BorderWidth="1" InsertButtonStyle-Font-Bold="true" InsertButtonStyle-Width="200" InsertButtonStyle-Height="30" InsertText="Add Multiple Photos" InsertButtonStyle-ForeColor="White" ID="TopicFiles">
        <ValidateOption AllowedFileExtensions="jpeg,jpg,gif" MaxSizeKB="10240" />
        </CuteWebUI:UploadAttachments><br />
        
    <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="false" BorderColor="#CDD7D9" DataKeyField="FileGuid" OnItemCommand="DataGrid1_ItemCommand">  
                    <Columns>  
                        <asp:BoundColumn DataField="FileGuid" Visible="false" HeaderText="File Guid" />  
                        <asp:BoundColumn DataField="FileName" ItemStyle-Height="20px" HeaderStyle-Width="201px" HeaderStyle-ForeColor="#0086BE" HeaderStyle-Font-Bold="true" ItemStyle-CssClass="MulName" HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px" HeaderText="File Name" />  
                        <asp:BoundColumn DataField="FileSize" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="61px" HeaderStyle-ForeColor="#0086BE" HeaderStyle-Font-Bold="true" ItemStyle-CssClass="MulName" HeaderStyle-Font-Names="Verdana" HeaderStyle-Font-Size="11px"  HeaderText="File Size" />  
                        <asp:ButtonColumn CommandName="Remove" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="61px" ItemStyle-Font-Size="10px" ItemStyle-Font-Names="Verdana" ItemStyle-Font-Bold="true" ItemStyle-ForeColor="red" ItemStyle-Font-Underline="false" Text="Remove" />  
                        <asp:ButtonColumn CommandName="Download" Visible="false" Text="Download" />  
                    </Columns>
     
    Please let me know how can I replace "Remove" text in the data grid with an image button.
     
     
  •  10-28-2009, 9:41 AM 56748 in reply to 56740

    Re: How to replace the text "Remove" by an image

    Hi,
     
    You can use this :
     
    <asp:TemplateColumn>
          <ItemTemplate>
           <asp:ImageButton runat="server" ID="removeImg" ImageUrl="remove.gif" CommandName="Remove" />
          </ItemTemplate>
    </asp:TemplateColumn>
     
    Regards,
    Terry
  •  10-29-2009, 6:47 AM 56772 in reply to 56748

    Re: How to replace the text "Remove" by an image

    Hi,
     
    Thanks for the info. Its working fine
     
    Jagan
View as RSS news feed in XML