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
520
Scroll Tip in XamDataGrid
posted

Hi,

Consider I am having 10 fields, where my scrolloing mode is 'DeferredWithScrollTips'.
My primary field is 'FieldA' but I need to set IsScrollTipField property to 'FieldC' as the postion of 'FieldC' changes at runtime due to user preferences.

 

            if (this.FieldLayouts != null && this.FieldLayouts.Count > 0)
            {
                foreach (Field field in this.FieldLayouts[0].Fields)
                {
                    if (field.ActualPosition.Column == 0 && field.ActualPosition.Row == 0 && field.Visibility == Visibility.Visible)
                    {
                        field.IsScrollTipField = true;
                    }
                    else
                    {
                        field.IsScrollTipField = false;             //But this doesn't work for primary field....
                    }
                }
            }

 

This code sets FieldC's IsScrollTipField as true but FieldA's IsScrollTipField is also true and I am unable to make this false.

So in some rare cases I am getting 'FieldA' as scroll tip but this should not be the case.

Kindly guide me to solve this.

 

Thanks & Regards,

M. Arthi