主题:[救助] GRID事件绑定问题!
我用以下代码将GRID控件的1-7列头的CLICK事件绑定为执行表单中的一个自定义方法gridsort。
BINDEVENT(thisform.grid1.column1.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column2.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column3.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column4.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column5.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column6.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column7.header1,"click",thisform,"gridsort")
我想在gridsort()方法中得到点击GRID列头的编号或引用对象,也就是怎么知道点击了那一个列头?要求不要在Herder的CLICK()中写任何代码。
BINDEVENT(thisform.grid1.column1.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column2.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column3.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column4.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column5.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column6.header1,"click",thisform,"gridsort")
BINDEVENT(thisform.grid1.column7.header1,"click",thisform,"gridsort")
我想在gridsort()方法中得到点击GRID列头的编号或引用对象,也就是怎么知道点击了那一个列头?要求不要在Herder的CLICK()中写任何代码。