I have a broblem with UltraWebGrid.v8.2
When i click edit a cell after i click select a row then it's not selected. When i select again them it's selected.
I want click once then row is selected when edit cell.
Can you help me?
Thank you very much!
Hi,
Can you post a little bit of code to make it clear what you're asking?
Ed
This code make Grid:
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px" EnableAppStyling="False" Width="355px"> <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowAddNewDefault="Yes" AddNewBox-Hidden="true" AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault="Separate" CellClickActionDefault="Edit" HeaderTitleModeDefault="Never" Name="UltraWebGrid1" RowHeightDefault="18px" SelectTypeRowDefault="Single" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False" ScrollBar="Auto" ScrollBarView="Vertical"> <ActivationObject BorderStyle="Dotted" BorderWidth="1px"></ActivationObject> <FrameStyle BackColor="White" BorderColor="White" BorderStyle="Solid" BorderWidth="0px" Font-Names="Arial" Font-Size="8pt" Height="200px" Width="355px" /> <RowAlternateStyleDefault BackColor="#EFEFEF"> <BorderDetails ColorLeft="239, 239, 239" ColorTop="239, 239, 239" /> </RowAlternateStyleDefault> <ClientSideEvents /> <Pager MinimumPagesForDisplay="2"> <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </PagerStyle> </Pager> <EditCellStyleDefault BorderStyle="None" BorderWidth="0px"> <BorderDetails StyleBottom="None" StyleLeft="None" StyleRight="None" StyleTop="None" WidthBottom="0px" WidthLeft="0px" WidthRight="0px" WidthTop="0px" /> </EditCellStyleDefault> <FixedCellStyleDefault BorderWidth="0px" BorderStyle="None"/> <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </FooterStyleDefault> <HeaderStyleDefault BackColor="Silver" BorderStyle="Ridge" HorizontalAlign="Center" BorderColor="White" ForeColor="Black" Wrap="True"> <BorderDetails ColorLeft="Silver" ColorTop="Silver" WidthLeft="0px" WidthTop="1px" ColorBottom="White" ColorRight="Silver" WidthRight="1px" /> </HeaderStyleDefault> <RowSelectorStyleDefault BackColor="Silver" BorderStyle="Solid" Width="18px" HorizontalAlign="Justify" VerticalAlign="Middle" /> <RowStyleDefault BackColor="White" BorderColor="#EFEFEF" BorderStyle="Solid" BorderWidth="1px" CssClass="NormalText" Font-Size="8pt"> <Padding Left="3px" /> <BorderDetails ColorLeft="White" ColorTop="White" /> </RowStyleDefault> <GroupByRowStyleDefault BackColor="White" BorderColor="White" BorderWidth="0px"> </GroupByRowStyleDefault> <SelectedRowStyleDefault BackColor="Silver" BorderColor="White" BorderStyle="Solid" ForeColor="Black"/> <GroupByBox> <BoxStyle BackColor="ActiveBorder" BorderColor="Window"> </BoxStyle> </GroupByBox> <AddNewBox Hidden="true"> <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </BoxStyle> </AddNewBox> <RowExpAreaStyleDefault BackColor="LightSteelBlue" BorderStyle="None" ForeColor="LightSteelBlue" Width="0px"> </RowExpAreaStyleDefault> <FilterOptionsDefault> <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="8px" Height="300px" Width="200px"> <Padding Left="2px" /> </FilterDropDownStyle> <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White"> </FilterHighlightRowStyle> <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="8px"> <Padding Left="2px" /> </FilterOperandDropDownStyle> </FilterOptionsDefault> </DisplayLayout> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:UltraGridColumn BaseColumnName="ID" Key="ID" Width="100px"> <Header Caption="ID"> </Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="Filter" FieldLen="4" Key="Filter" Width="100px" > <CellStyle CssClass="TextRight"/> <Footer> <RowLayoutColumnInfo OriginX="1" /> </Footer> <Header Caption="Dieu kien"> <RowLayoutColumnInfo OriginX="1" /> </Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="Effect" Key="Effect" Width="100px" AllowUpdate="Yes"> <CellStyle CssClass="NormalText"> </CellStyle> <SelectedCellStyle BorderStyle="None" BorderWidth="0px" /> <Footer> <RowLayoutColumnInfo OriginX="2" /> </Footer> <Header Caption="Ket qua"> <RowLayoutColumnInfo OriginX="2" /> </Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="EffectVal" Hidden="true" Key="EffectVal" AllowUpdate="Yes"> <CellStyle CssClass="NormalText"> </CellStyle> <Footer> <RowLayoutColumnInfo OriginX="3" /> </Footer> <Header Caption="Ket qua"> <RowLayoutColumnInfo OriginX="3" /> </Header> </igtbl:UltraGridColumn> </Columns> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> </igtbl:UltraGridBand> </Bands> </igtbl:UltraWebGrid>
- when start run you click RowSelected then row is selected (by one pick)
- when start run you click Cell after click RowSelect then row not selected
- when start run you click Cell (cell is editing) after double click RowSelect then row is selected (by two pick)
Question is this. How can selected row by one pick into RowSelect when cell editing?
Please help me!
Thank a lot.