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
65
Ultrawebgrid 10.2 v Row select not working in IE 9.x
posted

Hi,

I am using following code to set the properties of the ultrawebgrid, When tried to select a row in the grid for IE 9.x, It is selecting for the first time, but from second time, it is not getting selected ( highlighting) the row.

dg.Width = Unit.Percentage(100);
dg.BorderStyle = BorderStyle.None;
dg.DisplayLayout.HeaderStyleDefault.BorderDetails.StyleLeft = BorderStyle.None;
dg.DisplayLayout.HeaderStyleDefault.BorderDetails.StyleTop = BorderStyle.None;
dg.DisplayLayout.HeaderStyleDefault.BorderDetails.StyleRight = BorderStyle.Solid;
dg.DisplayLayout.HeaderStyleDefault.BorderDetails.ColorRight = Color.FromArgb(246,244,236);
dg.DisplayLayout.HeaderStyleDefault.CssClass = "GridHeader";
dg.DisplayLayout.RowStyleDefault.BorderStyle = BorderStyle.None;
dg.DisplayLayout.RowStyleDefault.CssClass = "GridRow";
dg.DisplayLayout.RowAlternateStyleDefault.CssClass = "GridAltRow";
dg.DisplayLayout.Pager.Style.CssClass = "PageRow";
dg.DisplayLayout.FooterStyleDefault.CssClass = "GridFooter";

dg.DisplayLayout.CellClickActionDefault = clickAction;
dg.DisplayLayout.ActivationObject.BorderStyle = BorderStyle.Solid;
dg.DisplayLayout.ActivationObject.BorderColor = Color.FromArgb(212,195,102);
dg.DisplayLayout.ActivationObject.AllowActivation = true;

dg.DisplayLayout.SelectedRowStyleDefault.CssClass = "GridSelectedRow";
dg.DisplayLayout.SelectTypeRowDefault = selectType;

dg.DisplayLayout.StationaryMargins = StationaryMargins.HeaderAndFooter;
dg.DisplayLayout.ColFootersVisibleDefault = showFooter ? ShowMarginInfo.Yes : ShowMarginInfo.No;
//dg.DisplayLayout.AutoGenerateColumns = false;
dg.DisplayLayout.AllowSortingDefault = AllowSorting.Yes;
dg.DisplayLayout.AllowColSizingDefault = AllowSizing.Fixed;
dg.DisplayLayout.RowSizingDefault = AllowSizing.Fixed;
dg.DisplayLayout.RowHeightDefault = Unit.Pixel(20);
dg.DisplayLayout.HeaderClickActionDefault = HeaderClickAction.SortMulti;
dg.DisplayLayout.RowSelectorsDefault = RowSelectors.No;
dg.DisplayLayout.TableLayout = TableLayout.Fixed;

Please let me the solution.