Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Hide childgrid column and paging
posted

i created bands and column on aspx page as below:

one parent table and two first level child table,

i set one column of  one child table to hide in aspx as

  <ig:BoundDataField DataFieldName="CRG_ID" DataType="System.Int32" Key="CRG_ID"
                            Width="100px" Hidden="True">

this column hidden only working in firstpage, if go other page, this hiddend field show up again.

actually, any post back will make this hidden not working.

does anybody help me ?

 

thanks

 

 

 

   <ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server"
            Height="100%" oninitializeband="WebHierarchicalDataGrid1_InitializeBand"
            onrowislandspopulating="WebHierarchicalDataGrid1_RowIslandsPopulating"
            StyleSetName="Office2007Silver" Width="980px"
            ondatabound="WebHierarchicalDataGrid1_DataBound"
            ongroupedrowinitialized="WebHierarchicalDataGrid1_GroupedRowInitialized"
            oninitializerow="WebHierarchicalDataGrid1_InitializeRow"
            onpageindexchanged="WebHierarchicalDataGrid1_PageIndexChanged"
            onprerender="WebHierarchicalDataGrid1_PreRender"
            onrowislanddatabound="WebHierarchicalDataGrid1_RowIslandDataBound"
            AutoGenerateColumns="False" DataKeyFields="JOB_ID" DataMember="Table"
            DefaultColumnWidth="90px"
            onrowislanddatabinding="WebHierarchicalDataGrid1_RowIslandDataBinding"
            onrowislandcreated="WebHierarchicalDataGrid1_RowIslandCreated">
            <Columns>
                <ig:BoundDataField DataFieldName="JOB_ID" DataType="System.Int32" Key="JOB_ID"
                    Width="800px">
                    <Header Text="JOB_ID" />
                </ig:BoundDataField>
            </Columns>
            <Behaviors>
                <ig:Paging EnableInheritance="True" PagerMode="NumericFirstLast" PageSize="10"
                    QuickPages="5">
                </ig:Paging>
                <ig:Sorting>
                </ig:Sorting>
                <ig:Selection>
                </ig:Selection>
                <ig:RowSelectors>
                </ig:RowSelectors>
                <ig:Activation>
                </ig:Activation>
            </Behaviors>
            <Bands>
                <ig:Band AutoGenerateColumns="False" DataKeyFields="CRG_ID" DataMember="table1"
                    Key="ChildBand_0" Width="500px">
                    <Columns>
                        <ig:BoundDataField DataFieldName="CRG_ID" DataType="System.Int32" Key="CRG_ID"
                            Width="100px">
                            <Header Text="CRG_ID" />
                        </ig:BoundDataField>
                        <ig:BoundDataField DataFieldName="MMB_SHIPPER_NAME" Key="MMB_SHIPPER_NAME">
                            <Header Text="MMB_SHIPPER_NAME" />
                        </ig:BoundDataField>
                    </Columns>
                    <Behaviors>
                        <ig:Sorting>
                        </ig:Sorting>
                    </Behaviors>
                </ig:Band>
                <ig:Band AutoGenerateColumns="False" DataKeyFields="VCRG_ID" DataMember="table2"
                    Key="ChildBand_1" Width="600px">
                    <Columns>
                        <ig:BoundDataField DataFieldName="VCRG_ID" Key="VCRG_ID" Width="70px">
                            <Header Text="VCRG_ID" />
                        </ig:BoundDataField>
                        <ig:BoundDataField DataFieldName="VCRG_VIN" DataType="System.String"
                            Key="VCRG_VIN" Width="150px">
                            <Header Text="VIN" />
                        </ig:BoundDataField>
                    </Columns>
                    <Behaviors>
                        <ig:Sorting>
                            <ColumnSettings>
                                <ig:SortingColumnSetting ColumnKey="VCRG_VIN" />
                            </ColumnSettings>
                        </ig:Sorting>
                    </Behaviors>
                </ig:Band>
            </Bands>
        </ig:WebHierarchicalDataGrid>