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
615
How to disable hierarchy column.
posted

Hi,

I want to bind single table to xamGrid but everytime I bind xamGrid always has the first column for childband drill down. How I disable this column in code. My code is below:

            _eBiz4DSysContext.Load(_eBiz4DSysContext.GetSYS_MessageQuery()).Completed += (sender1, args) =>

            {

                var message = from p in _eBiz4DSysContext.SYS_Messages

                               where p.Code==1 || p.Code ==3

                               select p;                

                this.xamGrid1.ItemsSource = message;

                this.dataGrid1.ItemsSource = message;                       

            };

 

Thanks

Han

Parents
  • 6912
    Suggested Answer
    posted

    Hi,

    If you just want to hide the ExpansionIndicatorColumn you can set the Visibility to Collapsed through the ExpansionIndicatorSettings like that:

    ...
    <ig:XamGrid.ExpansionIndicatorSettings>
        <ig:ExpansionIndicatorSettings Visibility="Collapsed" />
    </ig:XamGrid.ExpansionIndicatorSettings>
    ...

    Or, if you do not want the grid to auto-generate the hierarchy you can set the MaxDepth of the XamGrid to 0.

    Hope this helps

Reply Children
No Data