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 / Visual Studio.NET / IDE / August 2005

Tip: Looking for answers? Try searching our database.

GridView and DetailsView Available in Windows Forms?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RadioSignal - 10 Aug 2005 19:12 GMT
I've been using GridView and DetailsView in ASP.NET 2.0. Are they or will
they be available for Windows forms too? If so, how do I add them to the VS
2005 toolbox in a Windows forms project?
clintonG - 10 Aug 2005 19:25 GMT
Sorry I can't be helpful with your actual question but I have to ask if you
have learned how to access a control such as a label control that has been
declared in a DetailsView PagerTemplate?

The PagerTemplate of the DetailsView has a BottomPagerRow property just like
the GridView but nobody has yet to show -- explicitly using the DetailViews
control -- how to access a control such as a label control that exists in
the PagerTemplate of the DetailsView control.

Several responses with the GridView but I've been unable to reuse any of the
GridView code with the DetailsView control.

<%= Clinton Gallagher
        METROmilwaukee (sm) "A Regional Information Service"
        NET csgallagher AT metromilwaukee.com
        URL http://metromilwaukee.com/
        URL http://clintongallagher.metromilwaukee.com/

> I've been using GridView and DetailsView in ASP.NET 2.0. Are they or will
> they be available for Windows forms too? If so, how do I add them to the
> VS
> 2005 toolbox in a Windows forms project?
RadioSignal - 11 Aug 2005 03:10 GMT
I have not worked with the DetailsView to that extent. I am a bit confused as
I read that one cannot change the layout of the DetailsView control with
templates at all as the DetailsView control doesn't support data-bound
templates on rows. Instead, you have to simulate template support by
adding/replacing controls during the ItemCreated event.

> Sorry I can't be helpful with your actual question but I have to ask if you
> have learned how to access a control such as a label control that has been
[quoted text clipped - 18 lines]
> > VS
> > 2005 toolbox in a Windows forms project?
clintonG - 11 Aug 2005 05:39 GMT
I'll study the ItemCreated event noting its not trying to modify any of the
layout that I am currently concerned about but setting and getting the
properties of controls I place into the row templates.

I have not been able to confirm the presence of a label control used within
a PagerTemplate but reading the ItemCreated documentation states "...You can
use this event to provide an event-handling method that performs a custom
routine, such as adding custom content to a row, whenever this event
occurs." so it seems you have a point where I need to do further study.

I have found this book online "A First Look at ASP.NET v.2.0" [1] which is
very insightful.

<%= Clinton Gallagher
        METROmilwaukee (sm) "A Regional Information Service"
        NET csgallagher AT metromilwaukee.com
        URL http://metromilwaukee.com/
        URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.readol.net/books/computer/dotnet/A.First.Look.At.ASP.Dot.NET.v.2.0/03
21228960_toc.html


>I have not worked with the DetailsView to that extent. I am a bit confused
>as
[quoted text clipped - 32 lines]
>> > VS
>> > 2005 toolbox in a Windows forms project?
"Gary Chang[MSFT]" - 11 Aug 2005 08:05 GMT
Hi,

>I've been using GridView and DetailsView in ASP.NET 2.0.
>Are they or will they be available for Windows forms too?

The GridView and DetailsView are web form controls, they will not be
available as Windows Form controls in VS2005, so it is impossible to use
them in a Windows forms project.

If you need a Winform datagrid control in .NET 2.0, I suggest you take a
look at the new DataGridView control. The DataGridView supports common
tasks like master-details lists, validation, and data formatting without
requiring you to write more than a few of lines of code, it could be used
to display data with or without an underlying data source.

For more details of this new Winform control, please reer to the following
MSDN article links:

Introducing a New Data Grid
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvsdev05/h
tml/vs05a9.asp

A New Grid Control in Windows Forms
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvsdev05/h
tml/vs05a9.asp

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

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.