I need to extend the griview control to add a button column and when
the button clicks, it will dynamic load a user control with the
gridview. Is this dorable, how hard this will be? Any suggestion is
highly appreciated!

Re: extend gridview by Peter

Peter
Fri Oct 05 11:45:27 PDT 2007

April wrote:
> I need to extend the griview control to add a button column and when
> the button clicks, it will dynamic load a user control with the
> gridview. Is this dorable, how hard this will be? Any suggestion is
> highly appreciated!

I'm not sure I understand the question.

If you are asking about "extending the GridView" control class, that
implies you want to change the GridView class behavior itself. But then
you write you want to have a button that actually loads "a user control
with the GridView". Which seems to mean that the button results in the
instantiation of the GridView. If you don't instantiate the GridView
until the button is pressed, then obviously that behavior can't be in
the GridView itself.

Can you be more clear about what it is you're trying to do?

Pete

Re: extend gridview by April

April
Fri Oct 05 12:15:11 PDT 2007

On Oct 5, 2:45 pm, Peter Duniho <NpOeStPe...@NnOwSlPiAnMk.com> wrote:
> I'm not sure I understand the question.
>
> If you are asking about "extending the GridView" control class, that
> implies you want to change the GridView class behavior itself. But then
> you write you want to have a button that actually loads "a user control
> with the GridView". Which seems to mean that the button results in the
> instantiation of the GridView. If you don't instantiate the GridView
> until the button is pressed, then obviously that behavior can't be in
> the GridView itself.
>
> Can you be more clear about what it is you're trying to do?
>
> Pete

My requirement is to build a custom gridview server control which
allow attach documents for each row. So, I first build a user control
to do attachment, then I need to combine it with the gridview control,
it is a very common function for my application.
Thanks!



Re: extend gridview by Peter

Peter
Fri Oct 05 13:13:20 PDT 2007

April wrote:
> My requirement is to build a custom gridview server control which
> allow attach documents for each row. So, I first build a user control
> to do attachment, then I need to combine it with the gridview control,
> it is a very common function for my application.

Okay, let me make sure I have this correct: you have a GridView control
in your web form. You want a column in the control that includes a
button you can use to associate a file attachment with the data in that
row. So the question is how to get that button to show up in the
GridView and respond to user clicks to allow you to present the user
control used to specify the attachment.

Is that right?

Unfortunately, I have no experience with the web form stuff, so I can't
answer that specific question. But hopefully having clarified the
question, it will be easier for someone who does know the answer to help
out.

Pete