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
Ultimate UI for Windows Forms
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
6 subscribers
Views
694654 views
Users
0 members are here
UltraGrid
Share
More
Cancel
145
HowTo prevent loss of DisplayLayout whent set DataSource = null
Robert Flügge
posted
over 16 years ago
We use our own derivation of UltraGrid with a design time layout. After setting the DataSource we watch OnInitializeLayout to prevent overwriting of the design time layout. But when DataSource is set to null, we don't get into this method and therefore we have no possibility to prevent the UltraGrid from clearing the complete layout. We can configure the default band 0 nontheless (add our design time columns) but unfortunately theres no ability to add new bands at runtime. So we can't get back a DisplayLayout with more than one band. Can we set DataSource=null without whiping the complete DisplayLayout similar to SetDataBinding (DataSource, DataMember, HideNewColumns)?
145
Offline
Robert Flügge
posted
over 16 years ago
in reply to
Mark
Hi Mark, thank you for your reply. I saw this post but I guess it's pretty dirty. It would change the expected behaviour of the UltraGrid. Assume one sets DataSource to null and I change this internally. When the one requests DataSource later in the code he expects null but it isn't. I also do not agree with Mike who says, thats a good behaviour. It may be intended by infragistics but not expected by the coder. I can define a layout at design time without any data. But on the other hand this "dataless" layout will be emptied at runtime without data. There should be a property that enables the coder to change this.
Cancel
Reply
Cancel
375
Mark
posted
over 16 years ago
see
http://news.infragistics.com/forums/p/8755/34465.aspx
- does it help ?
Cancel
Reply
Cancel