I am quite confuse why my code does not accept any gridview properties like
OnRowDataBound = "gdPartReg_RowDataBound"
OnRowDeleting = "gdPartReg_RowDeleting"
OnRowCreated = "gdPartReg_RowCreated"
and etc..
How to solve this?
This is my page directive :
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site1.Master" CodeBehind="InternalRegis.aspx.vb" Inherits="QFMSWeb.InternalRegis" %>
This is header of code behind
Public Class InternalRegis
Inherits System.Web.UI.Page
I have changed
Inherits="QFMSWeb.InternalRegis"
to
Inherits="InternalRegis"
but it cannot load the page. For your info, InternalRegis.aspx is in Forms folder. Does it has anything to do with this?
Edit ----
This is gridview code:
<asp:GridView ID="gdShop" runat="server" AutoGenerateColumns="False"
BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px"
CellPadding="4" CellSpacing="2" ForeColor="Black" Width="430px" OnRowCreated="gdPartReg_RowCreated" OnRowDeleted = "gdPartReg_RowDeleting">
<columns>
<asp:TemplateField>
<itemtemplate>
<asp:CheckBox ID="cbSH" runat="server" />
</itemtemplate>
<asp:BoundField DataField="DEPT" HeaderText="Dept" />
<asp:BoundField DataField="EMPID_T" HeaderText="Emp. ID" />
<asp:BoundField DataField="NAME_T" HeaderText="Name" />
</columns>
<footerstyle backcolor="#CCCCCC" />
<HeaderStyle BackColor="Black" BorderColor="White" Font-Bold="True"
ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" />
<pagerstyle backcolor="#CCCCCC" forecolor="Black" horizontalalign="Left" />
<rowstyle backcolor="White" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<sortedascendingcellstyle backcolor="#F1F1F1" />
<sortedascendingheaderstyle backcolor="#808080" />
<sorteddescendingcellstyle backcolor="#CAC9C9" />
<sorteddescendingheaderstyle backcolor="#383838" />