NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.FlatMode

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);

Property Value

true if the grid is displayed flat; otherwise, false. The default is false.

Example [Visual Basic]

The following example toggles the FlatMode property.

[Visual Basic]

Private Sub ToggleFlatMode(ByVal myGrid As DataGrid)
   myGrid.FlatMode = myGrid.FlatMode Xor True
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace