privatevoidhpGridView1_EditingControlShowing(objectsender,DataGridViewEditingControlShowingEventArgse){//判断要处理的DataGridViewComboBoxColumn名称,若符合条件,编辑控件被强制转换为ComboBox以处理,
添加SelectedIndexChanged
事件if(this.hpGridView1.CurrentCell.OwningColumn.Name=="clmTest"){((ComboBox)e.Control).SelectedIndexChanged+=newEventHandler(ComboBox_SelectedIndexChanged)}}///<summary///SelectedIndexChanged事件触发时需要进行的处理///</summary///<paramname="sender"</param///<paramname="e"</paramprivatevoidComboBox_SelectedIndexChanged(objectsender,EventArgse){this使用itemClick属性,添加响应
函数如itemClick="onclick(event)"就可以响应点击事件了
然后在脚本中添加函数如
<fx:Script>
<![CDATA[
protected function onclick(event:ChartItemEvent):void
{
var u:URLRequest = new URLRequest(“你的跳转地址”)
navigateToURL(u, "_blank")
}
]]>
</fx:Script>
肯定可以啊...
,listeners:{"rowclick":function(grid, rowIndex, e){
userListOnClick(grid,rowIndex,e)//点击之后调用的方法
}
}
放到
gridpanel里面就行了,试试吧.希望能帮到你!
评论列表(0条)