473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How show nested IEnumerable(Of Type) columns in grid?

I have an object that is IEnumerable(Of Employee).

An Employee has a foreign key LocationId because an employee is based at one
and only one office location.

Location has attributes LocationId, LocationName, etc.

When I fill an editable grid (Infragistics UltraGrid if that matters), I
want to display the following columns:

EmployeeLastName
EmployeeFirstName
LocationName

I can do this easily if I return just an IEnumerable and have explicilty
listed the columns. But, I want to return IEnumerable(Of Employee) so I can
edit and update accordingly.

Any idea how to do this?

Thanks.
Jun 27 '08 #1
0 1224

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Diego | last post by:
I'm sorry for my English. I had captured an image using: error=capSetCallbackOnVideoStream(hCaptur, VideoStreamCallback); and relativ functions. In VideoStreamCallback in lpVHdr I can...
0
by: question | last post by:
Hi! I have a requirement where I need to display multiple forms one after the other like a slide show. These are in the same application. Basicall on selection of a menu item it should start...
3
by: Jeffrey Grantz | last post by:
I took the code below from an example of FolderBrowserDialog but I keep getting the subject diagnostic on DialogResult.OK and I can't figure out what I am doing wrong. Any Help? ADVthanksANCE
3
by: kartikss | last post by:
HI!! If I have 2 forms ie form 1 , form 2 In Form 1 I have a command button to open form 2. how will i hide form 1 and show form 2, until i click on close button it open form 1 and form 2...
1
by: anuragNet | last post by:
Hi, Need a small help and confirmation, Is it possible to show "grid lines" in crystal reports (somthing similar to what we have in data grid). Any sample code for the same. I am using VB.NET....
4
by: parez | last post by:
Hi All, is there anyway i can take collection(IEnumerable) of a particular type as a paramter for a function. Thanks in advance.
2
by: Kenichi666 | last post by:
I have a column "description" in a sql table. it contains 2000 characters. I would like to setup my gridview column "Description" to show the first 30 characters only. At the moment it...
2
by: Dan | last post by:
Hello, all! New here, so please forgive if this has been answered before. I use MySQL most often, and can use the commands: show tables in ; show columns in ; which lists all the tables in...
1
by: Ronald S. Cook | last post by:
Hi, I have a grid (Infragistics UltraGrid but I don't think that matters) that is bound to data source IEnumerable(Of Employee). How do I add a row to the grid (i.e. to the underlying data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.