how to insert paynow button in bounded gridview in asp.net
<p>i want to add pay now button as shown in bounded Gridview in asp.net.
I have used like following</p>

<pre><code>&lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="challanstatus" 
    Width="646px"&gt;
    &lt;Columns&gt;
        &lt;asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
            ReadOnly="True" SortExpression="ID" /&gt;
        &lt;asp:BoundField DataField="RegisNo" HeaderText="RegisNo" 
            SortExpression="RegisNo" /&gt;
        &lt;asp:BoundField DataField="Reason" HeaderText="Reason" 
            SortExpression="Reason" /&gt;
        &lt;asp:BoundField DataField="Code" HeaderText="Code" SortExpression="Code" /&gt;
        &lt;asp:BoundField DataField="DateofChallan" HeaderText="DateofChallan" 
            SortExpression="DateofChallan" /&gt;
        &lt;asp:BoundField DataField="Status" HeaderText="Status" 
            SortExpression="Status" /&gt;
        &lt;asp:BoundField DataField="Amount" HeaderText="Amount" 
            SortExpression="Amount" /&gt;

&lt;asp:ButtonField  ButtonType="Button" CommandName="Edit" Text="Edit" Visible="True" CommandArgument='&lt;%# Container.DataItemIndex %&gt;' /&gt;


    &lt;/Columns&gt;
&lt;/asp:GridView&gt;
&lt;asp:AccessDataSource ID="challanstatus" runat="server" 
    DataFile="~/App_Data/Database.mdb" 
    SelectCommand="SELECT * FROM [tblchallan] WHERE (([RegisNo] = ?) AND ([RegisNo] = ?))"&gt;
    &lt;SelectParameters&gt;
        &lt;asp:ControlParameter ControlID="DropDownList1" Name="RegisNo" 
            PropertyName="SelectedValue" Type="String" /&gt;
        &lt;asp:ControlParameter ControlID="DropDownList1" Name="RegisNo2" 
            PropertyName="SelectedValue" Type="String" /&gt;
    &lt;/SelectParameters&gt;
&lt;/asp:AccessDataSource&gt;
</code></pre>

<p>where i use </p>

<pre><code>&lt;asp:ButtonField  ButtonType="Button" CommandName="Edit" Text="Edit" Visible="True" CommandArgument='&lt;%# Container.DataItemIndex %&gt;' /&gt;
</code></pre>

<p>to insert button but it gives following error:</p>

<p>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.</p>

<p>Parser Error Message: Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.ButtonField does not have a DataBinding event.</p>
