View Full Version : DataView name conflict

Mar 26, 2009, 12:22 PM
Given that System.Data has DataView class and that System.Data is commonly a default imported namespace, renaming the Coolite.Ext.Web.DataView would, in my opinion, be a good move.

Mar 27, 2009, 4:22 PM
Hi Justin,

We can't rename the DataView control, but I can offer a couple options to work around any nameing conflicts. 

Modified using statement:

using DataView = Coolite.Ext.Web.DataView;

Using the fully qualified namespace:

Coolite.Ext.Web.DataView view = new Coolite.Ext.Web.DataView();

Hope this helps.

Mar 28, 2009, 8:00 AM
I understand renaming the class is not really feasable now, I was coming at
it more from the side of having to use the fully qualified namespace
System.Data.DataView everywhere (I don't use Coolite DataView anywhere at
present). Anyway, was just a thought.</p>


(Also IE8 isn't letting me post here - get "The board administrator has requested that you must provide some message
content within your post. You cannot post only HTML, Images, EmotIcons or
IFCode." - don't know if that's just me as first time using IE in a while)</p>