1、PrepareEdit不限制网址列,把网址列的e.Cancel =True放到DataColChanging
2、绑定记录窗口事件,如双击事件,参考
全局代码:
Public Sub gdr2_MouseDoubleClick(sender As System.Object, e As System.Windows.Forms.MouseEventArgs)
If sender.RowSel = 2 Then '假定网址列是第三列
Dim Proc As New Process '定义一个新的Process
Proc.File = sender.Rows(2)(1) '指定要打开的网页地址
Proc.Start()
End If
End Sub
窗口AfterLoad事件
Dim rgd As WinForm.RecordGrid = e.Form.Controls("RecordGrid1")
Dim g1 As C1FlexGrid.C1FlexGrid = rgd.basecontrol
addhandler g1.MouseDoubleClick, addressof gdr2_MouseDoubleClick