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 / DataGrid / July 2004

Tip: Looking for answers? Try searching our database.

Presentation of Data in the DataGrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johnny Cash - 28 Jul 2004 17:58 GMT
I have what I believe is a basic question about presentation of data
in a DataGrid.

My DataGrid is backed by a DataTable that has a number of key values,
for example, the number 1 in the country column might represent
Australia. However, I want to go against a "look up" table to actually
present "Australia" rather than 1. Is there a best practice for
something like this. I am hoping that it is integrated with Visual
Studio but I can't seem to find the best way to do it. Is this
something that must be hand coded?

Your advice is greatly appreciated!
Thanks,
AR.
Alvin Bruney [MVP] - 28 Jul 2004 19:37 GMT
one approach which avoids a database lookup and a table search is to bring
back the discription in another column and keep that column hidden
e.item.cells[0].visible = false for example. when you want to lookup 1 which
is in cell one you have merely to write out the value e.item.cells[0].text

Signature

Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok

>I have what I believe is a basic question about presentation of data
> in a DataGrid.
[quoted text clipped - 10 lines]
> Thanks,
> AR.

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.