asp.net提示不包含gridview的定义
1个回答
推荐于2018-04-15
展开全部
你已经在.aspx文件中声明了GridView1事件。这是声明部分:OnSelectedIndexChanged="GridView1_SelectedIndexChanged"OnPageIndexChanged="GridView1_PageIndexChanging"OnRowDeleting="GrivView1_RowDeleting"OnDataBound="GridView1_RowDataBaund"双引号之间是事件名称。所以在.cs文件中也在定义这些事件。protectedvoidGridView1_SelectedIndexChanged(objectsender,EventArgse){}protectedvoidGridView1_SelectedIndexChanging(objectsender,GridViewSelectEventArgse){}protectedvoidGridView1_RowDeleted(objectsender,GridViewDeletedEventArgse){}protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse){}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |