views:

64

answers:

2

I'm using DevExpress AspxGridView and I'm trying to assign OnCustomCallBack programatically in the Page_Load. but it didn't work. this is my code,

aspxGrid1.attributes.add("OnCustomCallback","MyServerSideFunctionName")
+1  A: 

Do you mean this?

aspxGrid1.CustomCallback += new AspxGridViewCustomCallbackHandler(MyServerSideFunctionName);

(I have no DevExpress Controls so you have to adapt the delegates name.)

Or do you want to do it with Reflection?

Arthur
A: 

In VB.Net, you would attach a handler in this fashion:

AddEventHandler aspxGrid1.CustomCallBack, addressof MyServerSideFunction
Stephen Wrighton