I need to put a dropdown into the header of a grid.
Any suggestions?
Hi,
Following code snippet attaching dropdownlist into header of the grid.
AllowSortingDefault="OnClient" HeaderClickActionDefault="NotSet" CellClickActionDefault="Edit" AllowUpdateDefault="Yes" BorderCollapseDefault= "NotSet"
RowSelectorsDefault="No" SelectTypeRowDefault="Extended" Version="4.00" AutoGenerateColumns="False" >
BorderColor="Silver" CssClass="rowHeaderstyle" Font-Size="Smaller" Width="100px" >
<FrameStyle cssclass="ultraWebGrid" > </FrameStyle>
<FooterStyleDefault font-bold="True" borderstyle="Double" CssClass ="rowFooterStyle"></FooterStyleDefault>
<RowStyleDefault Font-Size="Medium" HorizontalAlign="Left" CssClass="rowStyle" Font-Bold="true" > </RowStyleDefault>
<FilterOptionsDefault>
<FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px"
Width="200px">
<Padding Left="2px" />
</FilterDropDownStyle>
<FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
</FilterHighlightRowStyle>
<ActivationObject BorderColor="" BorderWidth="">
</ActivationObject>
</DisplayLayout>
<Bands>
<igtbl:UltraGridBand AddButtonCaption="addAssignments" >
<igtbl:TemplatedColumn Type="DropDownList" Width="50px" AllowUpdate="yes" >
<HeaderTemplate>
<select> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value ="opel">Opel</option> <option value ="audi">Audi</option></select>
</igtbl:TemplatedColumn>
<igtbl:UltraGridColumn AllowUpdate="No" Key="storejobassignmentno_pk" BaseColumnName="storejobassignmentno_pk" >
<Header Caption="storejobassignment No">
<RowLayoutColumnInfo OriginX="2" />
</Header>
<Footer>
</Footer>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn AllowUpdate="No" Key="StoreJobNo_FK" BaseColumnName="StoreJobNo_FK" >
<Header Caption="StoreJob No">
<igtbl:UltraGridColumn CellButtonDisplay="always" Key="ddlEmployee" Type="DropDownList" AllowUpdate="Yes" BaseColumnName="EmployeeNo_FK" >
<Header Caption="Employee">
<igtbl:UltraGridColumn AllowUpdate="No" Key="status" BaseColumnName="status" >
<Header Caption="Status">
<igtbl:UltraGridColumn AllowUpdate="No" Key="lead" BaseColumnName="lead" >
<Header Caption="Lead">
</Columns>
<AddNewRow View="NotSet" Visible="NotSet">
</AddNewRow>
<FilterOptions AllString="" EmptyString="" NonEmptyString="">
</FilterOptions>
</igtbl:UltraGridBand>
</Bands>
</igtbl:UltraWebGrid>
Hey thanks for the sample.
However I need to have these combo boxes above the column headers. I have seen how to add combo boxes to the column headers(aspx) and how to add a header above the headers (codebehind). What I really need to see is how to add combo boxes above the column headers. Any ideas?