Inherit Datagrid

M

Martin Kulov

Hi guys,

I am trying to implement server control that inherits
DataGrid control in order to preserve all of his
properties and templates. However I want to add others
web controls besides the datagrid control that will
provide custom functionality. The problem is that these
controls are not named using the naming container of my
control but remain with their original name. Hence they
can not be processed on the server during postback.
Does anyone know how to inherit the datagrid and add more
controls on the page also?

Thanks,
Martin
 
M

Martin Johnson

Since you are inheriting your control from the datagrid
control you will be able to access all the public methods
of the base control so you will be able to add the
controls to the datagrid from the page. If you are
overriding any of the events of the datagrid remember to
 

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
474,100
Messages
2,570,634
Members
47,240
Latest member
taarariachand

Latest Threads

Top