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
210
ighierarchicalgrid example in Razor VB syntax
posted

Could you point me to example of using the ighierarchicalgrid in a Razor view using Visual Basic syntax? I have not been able to figure out the correct syntax by looking at the C# examples. Specifically, I'm trying to setup the ColumnLayouts with the datasource as a DataSet. I need to be able to set the column headers on the child grid.

  • 18204
    Suggested Answer
    Offline posted

    Hello Julie,

    Thank you for posting in our forums!

    The following documentation provides general details on how you can bind to a DataSet.

    http://www.igniteui.com/help/ighierarchicalgrid-binding-to-dataset#binding

    For VB specific code, see my attached sample.  In my sample I provide three methods to set up the igHierarchicalGrid.

    Method 1 is described in the above documentation and uses AutoGenerated Columns and Layouts.
    Method 2 allows you to manually define the Columns and Layouts but must be set up in the Controller.
    Method 3 allows you to manually define the Columns and Layouts in the View and requires you to spoof the data structure of your DataSet so the wrappers can parse the structure correctly.

    If you have any further questions or concerns with this, please let me know.

    VBDataSet.zip