Ask bout display query result to grid

Hi,all
how can i display the result of query to a grid?
i have a dialog to get a user input.This dialog will get a member_id,and when i click the OK button on this dialog,it will call a frame(with grid on it) that display data of the member_id which i input before.i use postgresql.Help me with some sample,pls.
thanx before for your attention

···

===========================================================================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004