North American Sales: 1-800-231-8588
Global Contacts
My Account
Menu
North American Sales: 1-800-321-8588
My Account
Sign In/Register
Design & Development
Design & Develop
Best Value
Infragistics Ultimate
The complete toolkit for building high performing web, mobile and desktop apps.
Indigo.Design
Use a unified platform for visual design, UX prototyping, code generation and application development.
Web
Ignite UI for Angular
Ignite UI for JavaScript
Ignite UI for React
Ultimate UI for ASP.NET
Indigo.Design
Desktop
Ultimate UI for Windows Forms
Ultimate UI for WPF
Prototyping
Indigo.Design
Mobile
Ultimate UI for Xamarin
Ultimate UI for iOS
Ultimate UI for Android
Automated Testing Tools
Test Automation for Micro Focus UFT: Windows Forms
Test Automation for Micro Focus UFT: WPF
Test Automation for IBM RFT: Windows Forms
UX
Indigo.Design Desktop
Collaborative prototyping and remote usability testing for UX & usability professionals
Indigo.Design
A Unified Platform for Visual Design, UX Prototyping, Code Generation, and App Development
Business Intelligence
Reveal Embedded
Accelerate your time to market with powerful, beautiful dashboards into your apps
Reveal App
Empower everyone in your organization to use data to make smarter business decisions
Team Productivity
Learn & Support
Support
Help & Support Documents
Blogs
Forums
Product Ideas
Reference Applications
Customer Stories
Webinars
eBook & Whitepapers
Events
Free Trials
Pricing
Product Pricing / Buy Online
Renew Existing License
Contact Us
Forums
Retired Products and Controls
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
Close
State
Not Answered
Replies
2 replies
Subscribers
4 subscribers
Views
472537 views
Users
0 members are here
UltraWebGrid (Retired)
ASP.NET
Share
More
Cancel
125
Dropdownlist is showing as text
Arun
posted
over 16 years ago
Hi, I have a ultrawebgrid with a column of type dropdownlist. When the page loads the dropdownlist column displays the text in the dropdownlist but I want to see the dropdown itself so that the user can select. The code looks like this: Adding a band to the Grid: vT.ValueListItems.Add(1, "One"); vT.ValueListItems.Add(2, "Two"); UltraGridBand ub = new UltraGridBand(true); ub.CellClickAction = CellClickAction.CellSelect; ub.Columns.Add("One"); ub.Columns.Add("Two"); ub.Columns[1].CellButtonDisplay = CellButtonDisplay.Always; ub.Columns[1].Type = ColumnType.DropDownList; ub.Columns[1].ValueList.DisplayStyle = ValueListDisplayStyle.DisplayText; ub.Columns[1].DataType = typeof(string).ToString(); ub.Columns[1].AllowUpdate = AllowUpdate.Yes; ub.Columns[1].ValueList = vT; this.grd.Bands.Add(ub); Populating the grid at runtime: UltraGridRow ur = new UltraGridRow(new Object[ { "", vT.ValueListItems[0].ToString() }); grd.Rows.Add(ur); Am I missing something here?
Parents
No Data
Reply
125
Arun
posted
over 16 years ago
I made it to work using the following code: grd.Bands[1].Columns[2].Width = 100; grd.Bands[1].Columns[2].Type = ColumnType.DropDownList; grd.Bands[1].Columns[2].CellButtonDisplay = CellButtonDisplay.Always; grd.Bands[1].Columns[2].AllowUpdate = AllowUpdate.Yes; grd.Bands[1].Columns[2].ValueList = v; grd.Bands[1].CellClickAction = CellClickAction.CellSelect; grd.Bands[1].Columns[2].ValueList.DisplayStyle = ValueListDisplayStyle.DisplayText; grd.Bands[1].Columns[2].ValueList.DataBind(); But now when the page loads the dropdown is not visible. When I click on the cell, then I can see the dropdownlist. How can I make the dropdownlist to be visible at all times?
Cancel
Reply
Verify Answer
Cancel
Children
2211
Patrick
posted
over 16 years ago
in reply to
Arun
http://forums.infragistics.com/forums/p/9187/35771.aspx#35771
Cancel
Reply
Verify Answer
Cancel