Subclassing DataGrid

D

Dan

Hi,

I am working from some examples in the MSPRess book: Building web solutions with ASP.NET and ADO.NET by Dino Esposito. I have subclassed DataGrid, and created a MyGrid class, that encapsulates some common behaviour I want. Now before I would have

<asp:DataGrid...><Columns....></Columns></asp:DataGrid

Now I hav

<mine:MyGrid...><Columns....></Columns></mine:MyGrid

but in design mode I get red lines (indicating an error) under the <Columns> tags, saying the active schema does not support this. This means the intellisense doesn't work etc, which is a pain. However, it does all compile and work OK, but it's a pain to edit, because it's hard to pick up mistakes. Is there a way to solve this?

Thank

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top