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 samplehttp://samples.infragistics.com/2009.1/WebFeatureBrowser/WebGrid/GridSelections/GridSelections.aspx 3shows what I need (I select Cell Click Action = RowSelect and the whole row is greyed)
Thanks for your help
Thanks for the solution...It helped me
It works now, thank you
It looks like you removed the CellClickAction="CellSelect" property from the DisplayLayout. Add this back in.
Hi Vince, thanks for your response.
I tried your suggested code, but no way to to get the whole row back-colored. Only the selected cell is paint in Blue.
I checked the whole code behind, but did not find anything that could override the SelectTypeRowDefault from the InitializeLayout event.
Do you have additional suggestions ? Thanks
I removed quite all grid properties, and kept only the necessary information:
<igtbl:UltraWebGrid Width="100%" ID="UltraGrid" runat="server" Height="400px" Browser="Xml" EnableCrawlerDetection="False" EnableTheming="False" oninitializedatasource="UltraGrid_InitializeDataSource" oninitializelayout="UltraGrid_InitializeLayout" onungroupcolumn="UltraGrid_UnGroupColumn" onupdaterowbatch="UltraGrid_UpdateRowBatch" onprerender="UltraGrid_PreRender" Visible="False">
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;