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
312
How to place Controls in WebGrid
posted

How can i place a dropdown list in ultrawebgrid and how to assign values to it.

  • 28464
    posted

    Hello,

    This can be done easily using either templated columns, or setting the columns type of the grid column to dropdown list. In case #1, you can use something like that:

    igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px" Width="325px"
            DataSourceID="AccessDataSource1" >
            <Bands>
                <igtbl:UltraGridBand>
                    <Columns> 
                        <igtbl:TemplatedColumn>
                            <CellTemplate>
                                <asp:DropDownList
                                    runat="server"
                                    ID="DropDownList1">
                                   <Items>

                                        ...

                                   </Items>
                                 </asp:DropDownList>
                            </CellTemplate>
                        </igtbl:TemplatedColumn>                 
                    </Columns>               
                </igtbl:UltraGridBand>
            </Bands>
            ...
    </igtbl:UltraWebGrid>
           

    In case #2, what you can take a look at is the ValueList functionality of the grid column.