Database Datagridview Cellclick事件

Database Datagridview Cellclick事件,database,vb.net,visual-studio-2010,Database,Vb.net,Visual Studio 2010,我正在使用VB 2010。我的表格上有一个studentsdatariview 当用户单击列标题以更改数据的排序时,StudentsDataGridView\u CellClick事件也会触发 在StudentsDataGridView\u CellClick事件中,我有很多代码要完成,因此我只希望在用户单击单元格而不是列标题时完成。你有什么想法吗?你可以使用StudentsDataGridView\u CellContentClick事件,朋友

我正在使用VB 2010。我的表格上有一个
studentsdatariview

当用户单击列标题以更改数据的排序时,
StudentsDataGridView\u CellClick
事件也会触发


StudentsDataGridView\u CellClick事件中,我有很多代码要完成,因此我只希望在用户单击单元格而不是列标题时完成。你有什么想法吗?

你可以使用
StudentsDataGridView\u CellContentClick
事件,朋友