|
-
Dec 19th, 2002, 04:57 AM
#1
Thread Starter
Registered User
IndexOf Datarow?!?
I think I am going crazy..... is it not in anyway possible to get the index of a specific row in a table?
I use soemthing like dr = Dataset11.Employees.FindByEmployeeID(4) to return a datarow from the Employees table of the Northwind database. I get a nice datarow object in my dr variable but......
how on earth do I get the index of the row in that table, ie what position does that row have in the Employees table?!?
-
Dec 19th, 2002, 06:22 AM
#2
Fanatic Member
While the DataRow object does have a property called rowid, and it can be examined in the debugger at runtime and seems to contain a 1-2-3-4 type count of rows, the property is not exposed to you at build time. There is probably a way to get at that value but I suspect you'd have to customize/modify the DataRow object to do it (I don't have the faintest). You're not the first person to ask about this either.
-
Dec 19th, 2002, 03:04 PM
#3
Thread Starter
Registered User
ok, well I'm using a loop now, but that just seemed a little to much. I thought of building an modified DataRow class, but with a typed Dataset and so much computer generated code it kinda scared med off.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|