Intersoft WebGrid Documentation
Unbound
See Also Send comments on this topic.
Intersoft WebGrid > WebGrid Features Overview > Displaying Data > Server-side Binding > Unbound

Glossary Item Box

This topic contains the following sections:

Working with WebGrid Unbound

WebGrid can also display data without binding it to database which is called unbound mode. To begin working with WebGrid Unbound, you only needs to specify data to their own object or specify it manually in design.

For example, the following code shows WebGrid unbound structure:

Code Copy Code
<ISWebgrid:WebGrid ID="WebGrid1" runat="server" Width="500px" Height="250px">
<RootTable>
                <Columns>
                    <iswebgrid:WebGridColumn Caption="Item Name" Name="Column0" Width="100px">
                    </iswebgrid:WebGridColumn>
                    <iswebgrid:WebGridColumn Caption="Discount" Name="Column1" Width="100px">
                    </iswebgrid:WebGridColumn>
                    <iswebgrid:WebGridColumn Caption="Price" Name="Column2" Width="100px">
                    </iswebgrid:WebGridColumn>
                </Columns>
                <Rows>
                    <iswebgrid:WebGridRow Height="">
                        <Cells>
                            <iswebgrid:WebGridCell Text="Item1">
                            </iswebgrid:WebGridCell>
                            <iswebgrid:WebGridCell Text="0">
                            </iswebgrid:WebGridCell>
                            <iswebgrid:WebGridCell Text="100">
                            </iswebgrid:WebGridCell>
                        </Cells>
                    </iswebgrid:WebGridRow>
                    <iswebgrid:WebGridRow Position="1" Height="">
                        <Cells>
                            <iswebgrid:WebGridCell Text="Item2">
                            </iswebgrid:WebGridCell>
                            <iswebgrid:WebGridCell Text="5">
                            </iswebgrid:WebGridCell>
                            <iswebgrid:WebGridCell Text="200">
                            </iswebgrid:WebGridCell>
                        </Cells>
                    </iswebgrid:WebGridRow>
                    <iswebgrid:WebGridRow Position="2" Height="">
                        <Cells>
                            <iswebgrid:WebGridCell Text="Item3">
                            </iswebgrid:WebGridCell>
                            <iswebgrid:WebGridCell Text="10">
                            </iswebgrid:WebGridCell>
                            <iswebgrid:WebGridCell Text="500">
                            </iswebgrid:WebGridCell>
                        </Cells>
                    </iswebgrid:WebGridRow>
                </Rows>
            </RootTable></ISWebgrid:WebGrid>

Unbound Hierarchical

Since version 5, WebGrid allows you to configure Hierarchical child tables in Unbound mode. In previous versions, WebGrid only supported databound mode to be used in Hierarchical feature. To simulate Unbound mode in previous versions, you usually create a temporary DataSet and the DataTables and map them through DataRelation. However, you will no longer need temporary DataSet or workaround in order to configure hierarchical Grid in Unbound mode. WebGrid has supported pure Unbound mode through server side object model in since V5.0.

For more Information, see Walkthrough: Creating unbound WebGrid with Hierarchical enabled.

Note that when the Grid is operating in Unbound mode, all data-bound features -- such as sorting, grouping, etc -- should not be enabled.

For more information, see:

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.