Visual inheritance DataGridView, where is it at design time?(hockblogs.net)

submitted by hockmanhockman(505) 3 years, 11 months ago

Hi there, I'm currently working on a Visual Studio .NET 2005 Winforms project, where i've got multiple forms which have a DataGridView on it. So I decided, for maintenance sake, that I had to create a baseform, since alle the forms really must look-a-like. In the baseform I've set the modifier of the, to be inherited, control to public or protected. Nice job you would think! But guess again, cause visual inheritance on 2.0 controls, that can hold a collection, like the DataGridView is not possible. So you can throw away all your good meanings and efforts! This is what Microsoft has to say about it: "We disabled this scenario intentionally. We chose to not make the engineering effort it would have required to enable this scenario for Whidbey. This decision was not make lightly and we understand customers would like this functionality, but the existing visual inheritance architecture in combination with collection based controls makes it extremely costly to address. We hope to enable this in future versions".

add a comment |category: |Views: 20

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story