Related questions
How to access a gridview column on rowdatabound ?
I would like to change the value of my gridview column to active when the value is 1.
I have gridview column like
<asp:BoundField DataField="STATUS" HeaderText="STATUS" SortExpression="STATUS" HeaderStyle-HorizontalAlign="Left">
<HeaderStyle HorizontalAlign="Left"></…
e.Row.DataItem error in gridview rowdatabound event
I want to enable or disable a particular row according to the related user logined. So i use rowdatabound event but i have an error in this line:
DataRow drv = ((DataRowView)e.Row.DataItem).Row;
In here, e.Row.DataItem …
How to check if any row is selected from GridView?
I have a gridview in aspx page:
<asp:GridView ID="gdvMainList" runat="server" CssClass="Grid1" SkinID="PagedGridView"
AutoGenerateColumns="false" OnRowDataBound="gdvMainList_RowDataBound"
DataSourceId="dtsConsumers" Visible="false" DataKeyNames="Id">
<Columns>
<asp:CommandField SelectText="Select" ShowSelectButton="true" …