Binds the C1GridView control to the specified data source.

Namespace:  C1.Web.UI.Controls.C1GridView
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
public void DataBind(
	bool keepGroups
)
Visual Basic
Public Sub DataBind ( _
	keepGroups As Boolean _
)

Parameters

keepGroups
Type: System..::..Boolean
Indicates whether control must keep the expanded/collapsed state of the groups between postbacks or not.

Remarks

The DataBind method can be used to maintain the expanded/collapsed state of grouped rows when the grid is bound to its datasource. Passing in True to this method keeps the current expanded/collapsed state of the grouped rows. Passing in False (the same as calling DataBind()) uses the initial state as set in the OutlineMode property.

See Also