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
1935
ultragrid - combine both ButtonDisplayStyle.OnMouseEnter and ButtonDisplayStyle.OnRowActivate
posted

hi,

i have a grid and few of its column are

ColumnStyle

 

.DropDownValidate

i was wondering if its possible to combine both behaviours of

 

 

ButtonDisplayStyle.OnRowActivate
ButtonDisplayStyle.OnMouseEnter

let it show on the dropdown indicator on Active Row and on other rows when mouse hover.

i was able to somewhat immitate the combined behaviour as follows but this is somewhat not the best coding

on grid MouseMove event

 UltraGridCell mouseDownCell;
            mouseDownCell = getMouseDownCell(e);

 if (mouseDownCell != null)
            {
                if (mouseDownCell.Column.Key == "key1" || mouseDownCell.Column.Key == "key2")
                {
                    ugExcel.DisplayLayout.Bands[1].Columns["key1"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
                    ugExcel.DisplayLayout.Bands[1].Columns["key2"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
                }
                else
                {
                    ugExcel.DisplayLayout.Bands[1].Columns["key1"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnRowActivate;
                    ugExcel.DisplayLayout.Bands[1].Columns["key2"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnRowActivate;
                }

            }

Parents Reply Children
No Data