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
Checkbox in the header how to keep values on sort and how to make it not moving
posted

I am trying to implement ultrawebgrid and I have problem. I have checkbox at the last column in the datagrid. First I would like all the columns in the grid to be able to move, sort and filter, but I want to prevent that checkbox column from moving, I want it to stay at the last position, kind of like pinned column but without moving it to the first row. I am experiencing few problems.

I can't remove that pin icon, filter icon from header and if I try to make it as stationary column using quick design, it moves it to the first.

 I also lose checked values when user is sorting data in the grid.

  <igtbl:TemplatedColumn BaseColumnName="Showed Up?" Key="Showed Up?"
        Width="150px">
        <CellTemplate>
            <asp:CheckBox ID="chkShowedup"  runat="server" EnableViewState="true" />
        </CellTemplate>
        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center">
            <BorderDetails ColorTop="Black" WidthTop="1px" />
        </HeaderStyle>
        <CellStyle ForeColor="Blue" HorizontalAlign="Center">
        </CellStyle>
        <Header Caption="Showed Up?">                              
            <RowLayoutColumnInfo OriginX="3" />
        </Header>
        <Footer>
            <RowLayoutColumnInfo OriginX="3" />
        </Footer>
         <HeaderTemplate>
         <table><tr><td>Showed Up?</td></tr>
         <tr><td>
        <table><tr><td>
        <asp:CheckBox ID="chkSelectAll" AutoPostBack="true" TextAlign="left" EnableViewState="true" runat="server" OnCheckedChanged="chkSelectAll_CheckedChanged" /></td>
        <td><font size="-1">Select all</font></td></tr></table>                            
         </td></tr></table>                               
         </HeaderTemplate>
    </igtbl:TemplatedColumn>