Topic: Customized record display

Hi,
   i am developing an application .. wherein i need to give option for the user to select the required columns and also the conditions to filter the records.. based on this i need to display the records (using active scaffold or any other scaffold ) .. how can i do this.. can anyone please help me?

Thankz in advance

-Prashanth