Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2005, 07:57 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vinipitta Send a message via MSN to vinipitta
Default Problemn extending DataGridColumn

Hi all,
I created a decorator for DataGridColumn that change the behavior of the InitializeCell method.

In a method that response to SortComando event I remove the columns of the DataGrid and decorate then with my decorator.

Well, my InitializeCell method works fine like I want, but I have one little problemn: if I change the state of the column then the change is lost.

Without the decorator, all changes in the columns of the DataGrid are preserved, but if I decorate the columns the changes are lost.

I look for the documentation and the BoundColumn, for example, don't override the SaveViewState, LoadViewState or TrackViewState methods from DataGridColumn Type. So, I think that this isn't the problemn. (I use the default implementation for this methods because they are protected and I can't delegate then to the decorated column).

I think that the problemn is change the DataGrid structure (I change the columns by decorated columns).

Can somebody help-me?

Thank you for pay attention,
[]'s
Vinícius Pitta Lima de Araújo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending the CMS retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 April 23rd, 2008 07:00 AM
extending xslt RoeZ XSLT 3 February 28th, 2008 05:52 PM
Extending DataGridItem Phrozen ASP.NET 2.0 Professional 0 March 11th, 2007 09:17 AM
Help: problem extending DataGrid tinlong ASP.NET 1.0 and 1.1 Professional 1 December 5th, 2005 11:48 PM
classes extending and inheriting jlong Beginning PHP 2 July 7th, 2003 02:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.