DataGrid.Collapse(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Collapses child relations, if any exist for all rows, or for a specified row.
public:
void Collapse(int row);
public void Collapse (int row);
member this.Collapse : int -> unit
Public Sub Collapse (row As Integer)
Parameters
- row
- Int32
The number of the row to collapse. If set to -1, all rows are collapsed.
Examples
The following code example collapses all rows in the System.Windows.Forms.DataGrid control.
DataGrid1.Collapse( -1 )
Remarks
Use the IsExpanded method to determine if a row is expanded.
Applies to
See also
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.