Can someone please give me a sample code on how i can add a dropdownlist to in a ultraweb grid?
Thank you.
Hello,
Please take a look at the sample below:
http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htmGrid->WebCombo - User ControlHope this helps.
Thanks for the quick response.
I used a dropdown list instead of a webcombo and was able to populate the list by populating its valueListItems.
It seems to work. But initially, the grid looks empty. It is only when the user clicks in the cell that the drop down list is visible. I'm trying to figure out how to display the first entry in the dropdown list by default.
Any help will be appreciated.
Thanks.
You can use the template column of grid and inset combo.
ASPX code:<igtbl:UltraGridBand> <Columns> <igtbl:TemplatedColumn Width="100px"> <CellTemplate> <igcmbo:WebCombo ID="WebCombo2" Width="100px" runat="server"> </igcmbo:WebCombo> </CellTemplate> </igtbl:TemplatedColumn>Please take a look at the picture below:
Hope this helps.
Thanks again, but i was able to create a drop down in my column by using a dropdownList and its valueListItems property.
What i'm trying to do is have the first entry in the drop down list show up by default.
I thought maybe ValueList.prompt = "required string" will solve my problem but it doesn't seem to work.
Help!
The prompt will be displayed only if the cell's value is empty (null). Otherwise the cell's value is selected in the value list.