我正在使用 DevExpress AspxGridView,并尝试在 Page_Load 中以编程方式分配 OnCustomCallBack。但它没有用。这是我的代码,
aspxGrid1.attributes.add("OnCustomCallback","MyServerSideFunctionName")
我正在使用 DevExpress AspxGridView,并尝试在 Page_Load 中以编程方式分配 OnCustomCallBack。但它没有用。这是我的代码,
aspxGrid1.attributes.add("OnCustomCallback","MyServerSideFunctionName")
你是这个意思吗?
aspxGrid1.CustomCallback += new AspxGridViewCustomCallbackHandler(MyServerSideFunctionName);
(我没有 DevExpress 控件,因此您必须调整代表名称。)
或者你想用反射来做吗?
在 VB.Net 中,您将以这种方式附加一个处理程序:
AddEventHandler aspxGrid1.CustomCallBack, addressof MyServerSideFunction