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
75
Impossible to highlight a row in my UltraWebGrid
posted

Hi,

I work on a grid (UltraWebGrid) in my web application. When a user selects a cell, the whole grid row should be highlighted, not only the selected cell.

I'm not able to do that. I've read other posts about the same issue, but their solution did not apply to me.

I've tried the DisplayLayout property CellClickActionDefault="RowSelect" but this did not help.

The sample
http://samples.infragistics.com/2009.1/WebFeatureBrowser/WebGrid/GridSelections/GridSelections.aspx 3
shows what I need (I select Cell Click Action = RowSelect and the whole row is greyed)

Thanks for your help

Parents
  • 45049
    Suggested Answer
    posted

    There are two possibilities.  One is that your grid does not allow row selection.  The other is that the grid wasn't told what color to use for selected rows.

    Test what happens when you use the following lines of code when handling the grid's InitializeLayout event:

    e.Layout.SelectTypeRowDefault = Infragistics.WebUI.UltraWebGrid.SelectType.Single;
    e.Layout.SelectedRowStyleDefault.BackColor = System.Drawing.Color.Blue;

Reply Children