ASPxGridView控件的全选Bug

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lovejesuslove/article/details/50943899

                          <input id="Button2" style="width: 45px" type="button" value="全选" οnclick="ASPxGridView1.SelectRows();"  />
                         <input id="Button3" style="width: 45px" type="button" value="取消" οnclick="ASPxGridView1.UnselectRows();" /></td>

 

如果ASPxGridView1控件的全选出现了问题,如:只选中了本页,其他页没有被选上,还有,取消全选之后,颜色没有变过来,那么问题可能出现在了数据源上,把数据源换成dataset或datatable(手写的),问题可能就会迎刃而解了。

展开阅读全文

ASPxGridView中的控件获取问题

08-06

前端代码:rn<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>rnrn<%@ Register assembly="DevExpress.Web.ASPxGridView.v8.1, Version=8.1.3.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>rn<%@ Register assembly="DevExpress.Web.ASPxEditors.v8.1, Version=8.1.3.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>rnrn<%@ Register assembly="DevExpress.Web.v8.1, Version=8.1.3.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1" namespace="DevExpress.Web.ASPxPanel" tagprefix="dxp" %>rnrnrnrnrnrn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrn后端代码:rnASPxComboBox aSPxComboBox4 = ASPxGridView1.FindRowCellTemplateControl(1, (GridViewDataColumn)ASPxGridView1.Columns["ssl"], "ASPxComboBox1") as ASPxComboBox;rnrnASPxComboBox aSPxComboBox5 = (ASPxComboBox)ASPxGridView1.Columns[3].Grid.FindControl("ASPxComboBox1");rnASPxComboBox aSPxComboBox3 = (ASPxComboBox)ASPxGridView1.FindEditFormTemplateControl("ASPxComboBox1");rnrnASPxComboBox aSPxComboBox = (ASPxComboBox)ASPxGridView1.Columns[1].Grid.FindEditFormTemplateControl("ASPxComboBox1");rnASPxComboBox aSPxComboBox1 = (ASPxComboBox)ASPxGridView1.Columns[2].Grid.FindEditFormTemplateControl("ASPxComboBox1");rnASPxComboBox aSPxComboBox2 = (ASPxComboBox)ASPxGridView1.Columns[3].Grid.FindEditFormTemplateControl("ASPxComboBox1");rnrn以上方法都无法获取ASPxComboBox1控件,返回值均为null。rnrn各位大虾帮帮忙吧! 论坛

没有更多推荐了,返回首页