私は 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