can't sort by related filed?

Stimulsoft Reports.NET discussion
Post Reply
progame
Posts: 46
Joined: Sat Nov 25, 2006 9:12 am
Location: china

can't sort by related filed?

Post by progame »

table
order:
orderid orderdate productid

product:
productid, productname

relation: order.productid product.productid

databand's datasource:order

order by: order.order_product.productname

but the data sorting order is not by productname. why?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

can't sort by related filed?

Post by Vital »

Hello,

At this moment SR does not support sorting by related field. You can use one trick. Add to report GroupHeaderBand. Set condition equal to related field. Set height of GroupHeaderBand to zero. After then you receive sorting by related field.

Thank you.
progame
Posts: 46
Joined: Sat Nov 25, 2006 9:12 am
Location: china

can't sort by related filed?

Post by progame »

thanks, it works.
Post Reply