Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2007

Tip: Looking for answers? Try searching our database.

extend gridview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
April - 05 Oct 2007 19:17 GMT
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!
Peter Duniho - 05 Oct 2007 19:45 GMT
> 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
April - 05 Oct 2007 20:15 GMT
> I'm not sure I understand the question.
>
[quoted text clipped - 9 lines]
>
> 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!
Peter Duniho - 05 Oct 2007 21:13 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.