GridDropDownGridListControlCellRenderer cr = this.gridGroupingControl1.TableControl.CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
cr.ListControlPart.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);
>GridDropDownGridListControlCellRenderer cr = this.gridGroupingControl1.TableControl.CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
>cr.ListControlPart.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);
>
GridDropDownGridListControlCellRenderer cr = this.gridGroupingControl1.GetTableControl("ChildToGrandChild").CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
cr.ListControlPart.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);
GridDropDownGridListControlCellRenderer cr = this.plannedOrdersGridGroupingControl.GetTableControl("ChildToGrandChild").CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
is executed, I get the old: Object reference not set to an instance of an object error.
>You are using the GridListControl from a nested table, not the parent table. So, you will have to get the TableControl diferently. The "ChildToGrandChild" used below is the name of the relation that ends at this TableControl.
>
>GridDropDownGridListControlCellRenderer cr = this.gridGroupingControl1.GetTableControl("ChildToGrandChild").CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
> cr.ListControlPart.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);
>