16,554
社区成员
发帖
与我相关
我的任务
分享
DataGridView1.Item(1, 1).AdjustCellBorderStyle( _
要修改为的边框样式?, _
保存上一次的边框样式?, _
添加左右垂直边框吗?, _
添加上下水平边框吗?, _
是第一列吗?, _
是第一行吗?) '这个功能的使用方法不明!
Private Sub DataGridView1_CellPainting(sender As Object, e As DataGridViewCellPaintingEventArgs) Handles DataGridView1.CellPainting
If e.RowIndex = 1 AndAlso (e.ColumnIndex = 1 OrElse e.ColumnIndex = 2) Then
e.AdvancedBorderStyle.All = DataGridViewAdvancedCellBorderStyle.None
End If
End Sub