hi
I wrote below code in gridview...
<asp:CommandField EditText = "تغییر نام گروه" UpdateText = "بروزرسانی" CancelText = "کنسل" ShowEditButton="True" ItemStyle-Width="100px" ButtonType="Link" ControlStyle-CssClass="/GVE" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ShowCancelButton="False" CausesValidation="false" ItemStyle-BackColor="#84BA00"
Visible = '<%#Eval("GroupName").ToString() == "فروشندگان ملک" ? true : false %>'/>
but below error happen:
Server Error in '/' Application.
Parser Error
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.
Parser Error Message: Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.CommandField does not have a DataBinding event.
Source Error:
Line 460:
Line 461:
Line 462: <asp:CommandField EditText = "تغییر نام گروه" UpdateText = "بروزرسانی" CancelText = "کنسل" ShowEditButton="True" ItemStyle-Width="100px" ButtonType="Link" ControlStyle-CssClass="/GVE" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ShowCancelButton="False" CausesValidation="false" ItemStyle-BackColor="#84BA00"
Line 463: Visible = '<%#Eval("GroupName").ToString() == "فروشندگان ملک" ? true : false %>'/>
Line 464: <asp:TemplateField ItemStyle-Width="76px">
|
Best regards
neda