Hi,
My web grid Contain 5 Column with the 1st and 2nd Column is Button.
I'm set the Button Column ( 1st Column and 2nd Column) to invisible 1st. Then after that, i'm visible back those Column. But after i clear the data in grid, my 2nd Column Header in Grid disappear. The strange is the 2nd column button still visible and the header now is showing with the 3rd column header. my 3rd Column header wil be showing with the 4th column header. End of the grid, the header is disappear but can insert data in that column.
Below is my design:
<igtbl:UltraWebGrid ID="dtgRequirementAnalysis" runat="server" Width="100%" OnClickCellButton="dtgRequirementAnalysis_ClickCellButton"> <Bands> <igtbl:UltraGridBand> <Columns> <igtbl:TemplatedColumn BaseColumnName="AddRow" CellButtonDisplay="Always" Key="AddRow" Type="Button" Width="30px"> <Header Caption="Add"> <RowLayoutColumnInfo OriginX="17" SpanY="2" /> </Header> <HeaderStyle Wrap="True" /> <CellStyle Wrap="True"> </CellStyle> <Footer> <RowLayoutColumnInfo OriginX="17" /> </Footer> </igtbl:TemplatedColumn> <igtbl:TemplatedColumn BaseColumnName="DeleteRow" CellButtonDisplay="Always" Key="DeleteRow" Type="Button" Width="30px"> <Header Caption="Delete"> <RowLayoutColumnInfo OriginX="18" SpanY="2" /> </Header> <HeaderStyle Wrap="True" /> <CellStyle Wrap="True"> </CellStyle> <Footer> <RowLayoutColumnInfo OriginX="18" /> </Footer> </igtbl:TemplatedColumn> <igtbl:UltraGridColumn Type="Custom" BaseColumnName="TaskDescription" CellMultiline="No" Key="TaskDescription" AllowUpdate="Yes" Width="200px"> <Header Caption="Task Description"> <RowLayoutColumnInfo OriginX="1" SpanY="2" /> </Header> <Footer> <RowLayoutColumnInfo OriginX="1" /> </Footer> <CellButtonStyle Wrap="True"> </CellButtonStyle> <HeaderStyle Wrap="True" /> <CellStyle Wrap="True"> </CellStyle> <SelectedCellStyle Wrap="True"> </SelectedCellStyle> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn Type="Custom" BaseColumnName="ProjectRole" Key="ProjectRole" AllowUpdate="Yes" Width="150px"> <Header Caption="Project Role"> <RowLayoutColumnInfo OriginX="2" SpanY="2" /> </Header> <HeaderStyle Wrap="True" /> <CellStyle Wrap="True"> </CellStyle> <Footer> <RowLayoutColumnInfo OriginX="2" /> </Footer> </igtbl:UltraGridColumn> </Columns> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" AutoGenerateColumns="false" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name="dtgProjectResource" RowHeightDefault="20px" RowSelectorsDefault="Yes" SelectTypeRowDefault="Single" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy"> <FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Width="100%"> </FrameStyle> <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </FooterStyleDefault> <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Left"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </HeaderStyleDefault> <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt"> <Padding Left="3px" /> <BorderDetails ColorLeft="Window" ColorTop="Window" /> </RowStyleDefault> <GroupByRowStyleDefault BackColor="Control" BorderColor="Window"> </GroupByRowStyleDefault> <GroupByBox Hidden="True"> </GroupByBox> <AddNewBox Hidden="False"> <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </BoxStyle> </AddNewBox> <FilterOptionsDefault> <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" 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="11px"> <Padding Left="2px" /> </FilterOperandDropDownStyle> </FilterOptionsDefault> <SelectedRowStyleDefault BackColor="#66FFFF" Font-Bold="true"> </SelectedRowStyleDefault> <ClientSideEvents ClickCellButtonHandler="ClickCellButton" /> </DisplayLayout> </igtbl:UltraWebGrid>