.Rows.Find(ID) on Primary Key in TypedList

Posts   
 
    
gfunny
User
Posts: 20
Joined: 21-Apr-2005
# Posted on: 09-Jan-2009 04:40:27   

For performance I created a primary key on my TypedList. I want to perform a xxxxx.Rows.Find(ID). But I want it to return the TypedListRow, not the standard DataRow that a DataTable.Rows.Find returns. Do the TypedList support this functionaility in any way?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Jan-2009 05:30:23   

You can easily cast the result:

MyTLRow r = (MyTLRow) someOfMyTLInstance.Rows.Find(ID);
David Elizondo | LLBLGen Support Team