View Single Post
  #1 (permalink)  
Old April 6th, 2004, 03:02 AM
msrnivas msrnivas is offline
Friend of Wrox
 
Join Date: Sep 2003
Location: , , .
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default edittext in editcommandcolumn

Hi
I am using datagrid in my asp.net project. I want to display button instead of 'edittext' in EditCommandColumn is there any way to do it.
my code like this
<asp:datagrid id="grd1" AlternatingItemStyle-BackColor=#ffcc99 Runat="server" HeaderStyle-Font-Size="10px" ItemStyle-Font-Size="9" HeaderStyle-BackColor="maroon" HeaderStyle-Font-Bold="True" HeaderStyle-Font-Name="Verdana" HeaderStyle-ForeColor="White" EditItemStyle-BackColor="#ffff66" EditItemStyle-ForeColor="#000000" ItemStyle-BackColor="Gainsboro" ItemStyle-Font-Name="verdana" Width="50%" PageSize="30" PagerStyle-Mode="NumericPages" AllowPaging="true" PagerStyle-HorizontalAlign="Right" AutoGenerateColumns="false" onPageIndexChanged="ChangeGridPage1" OnEditCommand="doitemedit" OnUpdateCommand="doitemupdate" OnCancelCommand="doitemcancel" OnDeleteCommand="Delete_Row" ShowHeader =true >
<Columns>
    <asp:EditCommandColumn HeaderText="Modify" EditText="edit" CancelText="cancel" UpdateText="update" />
' above instead of 'edit' text want to display button.
    remaining TemplateColumn
</column>
</asp:datagrid>

Reply With Quote