Gets or sets a value indicating whether the grid displays in flat mode.
[Visual Basic] Public Property FlatMode As Boolean [C#] public bool FlatMode {get; set;} [C++] public: __property bool get_FlatMode(); public: __property void set_FlatMode(bool); [JScript] public function get FlatMode() : Boolean; public function set FlatMode(Boolean);
true if the grid is displayed flat; otherwise, false. The default is false.
The following example toggles the FlatMode property.
[Visual Basic]
Private Sub ToggleFlatMode(ByVal myGrid As DataGrid) myGrid.FlatMode = myGrid.FlatMode Xor True End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace