-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SORTING - Please HELP! Urgent
PostPosted: Sun Feb 14, 2010 2:36 am 
Newbie

Joined: Mon Nov 26, 2007 10:39 pm
Posts: 4
I use an ICD9 object in my Patient Diagnosis object.

public ICD9 diagnosisId
{
get { return _diagnosisId; }
set { _diagnosisId = value; }
}

Inside the ICD9 is a public Description field

I define the mapping file as this:
<many-to-one name="diagnosisId" column="diagnosisId" class="HospiceCare.Core.Domain.ICD9, HospiceCare.Core" />

My grid view has this templatefield and the SORTING ISN'T WORKING. BUT THE Description displays fine when reference, but the sorting bombs.

<asp:TemplateField HeaderText="Diagnosis" SortExpression ="diagnosisId.Description" >
<ItemTemplate ><a href="EditPatientDiagnosis.aspx?Action=Edit&PatientDiagnosisID=<%#Encryption.Encrypt(Eval("ID").ToString()) %>&PatientGUID=<%#Eval("PatientGUID").ToString()%>"><%# Eval("diagnosisId.Description")%></a>
</ItemTemplate></asp:TemplateField>

Please HELP. I have been searching for hours on how to do this. It's a simple concept that I can't get working.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.