How is Sorting based on Expression
Posted: Fri Aug 18, 2006 2:15 am
Hi hi hi
How is sort based on Codition or Expression?
If Possible Sort data based on Some Expression?
Following code is Example.
1. If field1.Text="A" then
DataBand1.Sort Ascending Based on field2.Text
Else if field1.Text="B" then
DataBand1.Sort Ascending Based on field3.Text
Else if field.Text="C" then
DataBand1.Sort Decending order Based on field4.Text
else
DataBand1.Sort Decending
Above code is possible or other way of sorting data in Dynamic
Please Provide Solution For that Problem.
Thanks of Advance.
Regards,
KMarimuthu.
How is sort based on Codition or Expression?
If Possible Sort data based on Some Expression?
Following code is Example.
1. If field1.Text="A" then
DataBand1.Sort Ascending Based on field2.Text
Else if field1.Text="B" then
DataBand1.Sort Ascending Based on field3.Text
Else if field.Text="C" then
DataBand1.Sort Decending order Based on field4.Text
else
DataBand1.Sort Decending
Above code is possible or other way of sorting data in Dynamic
Please Provide Solution For that Problem.
Thanks of Advance.
Regards,
KMarimuthu.