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 / ASP.NET / Mobile / January 2004

Tip: Looking for answers? Try searching our database.

objectlist - hide columns in details view

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jarrod - 05 Jan 2004 19:45 GMT
How can you hide columns in the details view of an objectlist control?
In the table view you can hide and show any columns you wish by
setting the field properties (ex: Visible = false;) and the
objectList.TableFields list to display the number of columns you wish
to display.

The Details view always displays all columns even if the Visible
propery is set to false for the column.  I assume I will need to write
a custom itemDetailsTemplate, or something like that but I am not sure
what needs to be done, or the format that it should be in.

So if anyone has any examples of how to customize what is displayed in
the details view (not the header, and commands but the actual data) it
would be greatly appreciated.

Thanks,

Jarrod
jarrod - 06 Jan 2004 19:07 GMT
For anyone interested here is a good start:

http://teched2003downloads.mymsevents.com/HOLTechEd/DEVHOL20.doc

although if anyone has any examples with the template created
dynamically in the codebehind file that would still be helpful.

Thanks,

Jarrod

> How can you hide columns in the details view of an objectlist control?
>  In the table view you can hide and show any columns you wish by
[quoted text clipped - 14 lines]
>
> Jarrod
Martine - 08 Jan 2004 09:54 GMT
You do not have to use templates, instead use the Fields-collection of
the ObjectList. Add the fields you want to display like this in
runtime (or define the fields at design-time):

ObjectListField OLFemployee= new ObjectListField();
OLFemployee.Title = "Employee";
OLFemployee.DataField = "empl";
olf_Employee.DataFormatString = "whatever";
objectListEmployees.Fields.Add(OLFemployee);

I hope this helps,
kind regards, Martine.

> How can you hide columns in the details view of an objectlist control?
>  In the table view you can hide and show any columns you wish by
[quoted text clipped - 14 lines]
>
> Jarrod

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.