You need to sign in to do that
Don't have an account?
JSchneider
Any help would be great!
Sort apex:dataTable in Visualforce Page
<apex:dataTable value="{! Quote.QuoteLineItems }" var="line" rowClasses="odd,even" columnClasses="columnBorders" headerClass="dataTableHeader" cellpadding="5px" cellspacing="0" > <apex:column styleClass="firstColumn" headerValue="Product" value="{! line.Product2.Name }" /> <apex:column headerValue="Description" value="{! line.Description__c }" /> <apex:column styleClass="rightAlignColumn" headerValue="Quantity" value="{! line.Quantity }" /> <apex:column styleClass="rightAlignColumn" headerValue="Unit Price" value="{! line.UnitPrice }" /> <apex:column styleClass="totalsColumn" headerValue="Total Price" value="{! line.TotalPrice }" /> </apex:dataTable>There is a standard field on QuoteLineItem called SortOrder that I'd like to sort this by.
Any help would be great!
http://www.systempartners.com/blog/visualforce-sortable-table