DataGridViewCellPaintingEventArgs::AdvancedBorderStyle Property
Gets the border style of the current DataGridViewCell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property DataGridViewAdvancedBorderStyle^ AdvancedBorderStyle { DataGridViewAdvancedBorderStyle^ get(); }
Property Value
Type: System.Windows.Forms::DataGridViewAdvancedBorderStyle^A DataGridViewAdvancedBorderStyle that represents the border style of the DataGridViewCell.
Change the borders of the current DataGridViewCell by setting the properties of the AdvancedBorderStyle property to one of the DataGridViewAdvancedCellBorderStyle values.
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the DataGridView::CellPainting event. This report helps you to learn when the event occurs and can assist you in debugging.
To run the example code, paste it into a project that contains an instance of type DataGridView named DataGridView1. Then ensure that the event handler is associated with the DataGridView::CellPainting event.
Available since 2.0