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
540
expandable fields label part
posted

Hi All,

I'm using a xamdatagrid to show a hierarchy data it's working fine but I dont want to show the column names (header label) for the children grids . 

Parents
No Data
Reply
  • 540
    Verified Answer
    posted

    I found the solution add this event handler for the event FieldLayoutInitialized :

    private void dataGrid_businessStrategies_FieldLayoutInitialized(object sender, Infragistics.Windows.DataPresenter.Events.FieldLayoutInitializedEventArgs e)

            {

                if (!e.FieldLayout.IsDefault)

                {

                    e.FieldLayout.Settings.LabelLocation = Infragistics.Windows.DataPresenter.LabelLocation.Hidden;

                }        

            }

Children
No Data