DataGridView1.Item(1, 1).AdjustCellBorderStyle的使用问题

im战术 2017-04-25 09:50:11

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

但是问题是 AdjustCellBorderStyle 什么赋值,在哪个事件调用?
...全文
368 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧