In the grid designer I have created 2 layouts and saved them while in the designer.
In the VB .net code how do I tell the grid to use one of the layouts I saved?
Something like this:
Me.UltraGrid1.DisplayLayout.Bands(0).RowLayouts("My Row Layout Name").Apply()
Coded this:
Grid1.SetDataBinding(Ds, Nothing, True) Grid1.DisplayLayout.Bands(0).RowLayouts("License").Apply()
Got this error:
{"Object reference not set to an instance of an object."} on the 2nd line for the rowlayouts.
Not sure what part of this is missing. If i take out the rowlayout line the grid loads as expected.
The layout "License" is in the designer code