Hierarchical Grid-Add GridTableView programatically

Omlac

i would like to develop a hierarchical grid view programmatically. The firstrow(masterTableview) im adding it at design time.
Im doing that using the code below, but its not adding the griddesignview(children for the first row) Does anyone see whats wrong with the code im using here:
Master.ParentlocationID is matched to TableView.LocationID, im also using a dataset as my datasource.

"RadGrid does not support mixing declarative grid columns with grid columns added dynamically at runtime. You should either
create all the columns in the grid programmatically, or else define them all in the ASPX file."

Check out the link below for more information on programmatic creation of hierarchial grid.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.