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.OnRowActivateButtonDisplayStyle.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; }
}
sorry for the late reply,
thanks Mike for taking a look :)
Hi,
There's no built-in way to combine these two styles, so I don't see any better approach than the one you have here.
You should Submit a feature request to Infragistics and perhaps this could be added in a future release of NetAdvantage.