The Bands property located within the DisplayLayout property is also very important. If you do not have a data source assigned at design time, the Bands collection will be empty. If you assign a data source at runtime, then the InitializeLayout event is where you will access the Bands collection and perform customizations on each Band as needed.
The Bands collection will essentially contain one Band per public entity in your data model. It is within the Band where you can enable CardView, add Summaries that aggregate the various Colum data, show or hide all Column Headers for that entity and so fourth. Each Band has a Columns collection. The Columns collection is what you use to access specific Columns so that their order can be re-arranged, column styles can be set (Turn a Column into a Button, CheckBox or DropDown) and many more customizations.
Private Sub UltraGrid1_InitializeLayout( _
ByVal sender As System.Object, _
ByVal e As InitializeLayoutEventArgs) _
Handles UltraGrid1.InitializeLayout
Dim b As UltraGridBand = e.Layout.Bands("Customers")
b.CardView = True
b.Columns("CustomerID").Hidden = True
b.Columns("CompanyName").Header.Caption = "Company Name"
End Sub
private void ultraGrid1_InitializeLayout(
object sender,
InitializeLayoutEventArgs e)
{
UltraGridBand b = e.Layout.Bands["Customers"];
b.CardView = true;
b.Columns["CustomerID"].Hidden = true;
b.Columns["CompanyName"].Header.Caption = "Company Name";
}