how do i display the sql query result in a grid ,so as to the other columns should be hidden .for example if i select name,,then only name entries shoould be der, tthere should be only one column.similarly for name ,rollno -2 columns and so on ..
databinding in xaml cant be applied obviously ...as colums are to be generated dynamically .
please help ..
Loading
shriram iyerPosted Apr 11, 2011, 5:56 AM
result:
Student_name
Sam
Bam
tam
if query is select student_name,roll_no from student_table
result:
Student_name roll_no
Sam 1
Bam 2
tam 3
if query is select roll_no from student_table
result: roll_no
1
2
3
i.e:the other columns should not be displayed only the queried column entries sholud be displayed
Sam HobbsPosted Apr 10, 2011, 2:57 PM
shriram iyerPosted Apr 10, 2011, 1:38 AM
CrishPosted Apr 9, 2011, 5:35 AM
Suthish NairPosted Apr 8, 2011, 12:15 PM
Is this a WPF thread?
Refer article by Mahesh Chand: Link