p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Web Services (http://p2p.wrox.com/forumdisplay.php?f=102)
-   -   edittext in editcommandcolumn (http://p2p.wrox.com/showthread.php?t=11460)

msrnivas April 6th, 2004 03:02 AM

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>


ghimire April 7th, 2004 09:24 AM

<asp:EditCommandColumn HeaderText="Modify" EditText="edit" CancelText="cancel" UpdateText="update" ButtonType="PushButton" />


All times are GMT -4. The time now is 03:35 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.