Web User Control with GridView can derive new Web User Control?

  • Thread starter Thread starter ABC
  • Start date Start date
A

ABC

I have an idea. I need to write a common gridview block which contains
labels, textboxs, one girdview and some buttons.

Then, I think the above block will apply on several girdview with different
columns, for example:

Common GridView Block
- label, textboxs, buttons
- one girdview without any columns


1st GridView inherts from common gridview block
- gridview with 5 data columns


2nd GridView inherts from common gridview block
- gridview with 3 data columns


3rd GridView inherts from common gridview block
- gridview with 6 data columns


Can my idea work?
 
To incorporate all of those elements together you may want to write a
composite control.

Regarding the fixed number of columns, what is your intent? The
GridView outta the box allows you to be flexible with the number of
columns, what can beat that?

If others are going to comsume your control, it seems to me that they
will have to specify columns anyhow.

Regards,

Larry
 

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

Back
Top