|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MyGridView cause "Columes" lose the intellisense in VS2005 IDE!Hi there, I guess it maybe easy for you-- I create a custome control
inherited from GridView, But when I start to use in the page , in vs2005 , I lose the intellisense for anthing in <columns> tag. It's not a big deal, but it's relatively painful when you know you can do it in GridView. I use the reflector to check the source code in GridView and notice that there are 4 interfaces for PostBack and CallBack implementated by GridView which I guess it's nothing to do intellisense.Following is the simple code: [ToolboxData("<{0}:MyGrid runat=server></{0}:MyGrid >")] [ToolboxBitmap(typeof(MyGrid ), "Resources.Table.ico")] public class MyGrid : GridView {....} Appreciate any comment. While waiting for the answer, I did a quick search on internet and found it's
bug in VS2005: " This is a known limitation in the source editor for VS2005. When scanning for derived types to add to the schema it uses for intellisense, it only searches within assemblies referenced by the corresponding tag prefix (ie, if the assembly had a control extending DropDownList, that would be shown in intellisense). We know this is an annoying limitation, and hope to address this in a future version. -- Todd Grunke " There is another issue I wish it could be address quickly is that @page cannot intellisense on the PageBase property. See my post " How to set the page property in aspx file?" in asp.net newsgroup. Show quoteHide quote "walter" wrote: > Hi there, I guess it maybe easy for you-- I create a custome control > inherited from GridView, But when I start to use in the page , in vs2005 , I > lose the intellisense for anthing in <columns> tag. It's not a big deal, but > it's relatively painful when you know you can do it in GridView. > > I use the reflector to check the source code in GridView and notice that > there are 4 interfaces for PostBack and CallBack implementated by GridView > which I guess it's nothing to do intellisense.Following is the simple code: > > [ToolboxData("<{0}:MyGrid runat=server></{0}:MyGrid >")] > [ToolboxBitmap(typeof(MyGrid ), "Resources.Table.ico")] > public class MyGrid : GridView > {....} > > Appreciate any comment. > > > > > > "We know this is an annoying limitation, and hope to address this in a
future version." Gosh. These guys are ridiculous. P.S. I guess if it had to search the base types assemblies it would be even slower than it is now. And, the ASP.NET designers (both Design View and Source) are pretty freakin' slow. Show quoteHide quote "walter" <w**@morneausobeco.com> wrote in message news:EAD6B4A6-0CB3-491B-B98D-57FBDDB3C26B@microsoft.com... > While waiting for the answer, I did a quick search on internet and found > it's > bug in VS2005: > " This is a known limitation in the source editor for VS2005. When > scanning > for derived types to add to the schema it uses for intellisense, it only > searches within assemblies referenced by the corresponding tag prefix (ie, > if > the assembly had a control extending DropDownList, that would be shown in > intellisense). We know this is an annoying limitation, and hope to address > this in a future version. > > -- Todd Grunke > " > There is another issue I wish it could be address quickly is that @page > cannot intellisense on the PageBase property. See my post " How to set the > page property in aspx file?" in asp.net newsgroup. > > > "walter" wrote: > >> Hi there, I guess it maybe easy for you-- I create a custome control >> inherited from GridView, But when I start to use in the page , in vs2005 >> , I >> lose the intellisense for anthing in <columns> tag. It's not a big deal, >> but >> it's relatively painful when you know you can do it in GridView. >> >> I use the reflector to check the source code in GridView and notice that >> there are 4 interfaces for PostBack and CallBack implementated by >> GridView >> which I guess it's nothing to do intellisense.Following is the simple >> code: >> >> [ToolboxData("<{0}:MyGrid runat=server></{0}:MyGrid >")] >> [ToolboxBitmap(typeof(MyGrid ), "Resources.Table.ico")] >> public class MyGrid : GridView >> {....} >> >> Appreciate any comment. >> >> >> >> >> >> You would need to have your own column objects (derived from base columns)
in the same namespace. That way, in fact you have them in the same assembly and the limitation you mentioned can be worked a round. FYI: http://aspadvice.com/blogs/joteke/archive/2006/01/27/14886.aspx Show quoteHide quote "walter" <w**@morneausobeco.com> wrote in message news:EAD6B4A6-0CB3-491B-B98D-57FBDDB3C26B@microsoft.com... > While waiting for the answer, I did a quick search on internet and found > it's > bug in VS2005: > " This is a known limitation in the source editor for VS2005. When > scanning > for derived types to add to the schema it uses for intellisense, it only > searches within assemblies referenced by the corresponding tag prefix (ie, > if > the assembly had a control extending DropDownList, that would be shown in > intellisense). We know this is an annoying limitation, and hope to address > this in a future version. > > -- Todd Grunke > " > There is another issue I wish it could be address quickly is that @page > cannot intellisense on the PageBase property. See my post " How to set the > page property in aspx file?" in asp.net newsgroup. > > > "walter" wrote: > >> Hi there, I guess it maybe easy for you-- I create a custome control >> inherited from GridView, But when I start to use in the page , in vs2005 >> , I >> lose the intellisense for anthing in <columns> tag. It's not a big deal, >> but >> it's relatively painful when you know you can do it in GridView. >> >> I use the reflector to check the source code in GridView and notice that >> there are 4 interfaces for PostBack and CallBack implementated by >> GridView >> which I guess it's nothing to do intellisense.Following is the simple >> code: >> >> [ToolboxData("<{0}:MyGrid runat=server></{0}:MyGrid >")] >> [ToolboxBitmap(typeof(MyGrid ), "Resources.Table.ico")] >> public class MyGrid : GridView >> {....} >> >> Appreciate any comment. >> >> >> >> >> >>
Other interesting topics
CompositeControl and Toolbox
A socket operation was attempted to an unreachable network ID of web control changed Can i Make a Month Column Display May instead of 5 Custom Panel How to upload files to a remote webserver using FileUpload ? MetaBuilders DualList control does not work in 2.0 Auto Download Serial Communication DropdownList fields in DetailView |
|||||||||||||||||||||||