It shows the first column content as tooltip while dragging scroll bar up and down. Is there a way to configure this to show the value of other column?
By Default, the XamDataGrid will display the first (which is the primary field) as scroll tool tip. You can change that by setting the IsScrollTipField property of the field. If you set it to True, this field will appear as scrolltip when scrolling the XamDataGrid. You can change the scrolling mode of the XamDataGrid with the ScrollingMode property.
Hope this helps.
Thanks.
It sounds like scroll tooltip can only show primary key? Or I can set it to any other column?
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 field changes at runtime.
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; } } }
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
By default it is the first field. You can change that by setting IsScrollTipField to True to the field that you want to appear as scroll tip field.