Hello , can anyone pls help me in display only the required data from a dataset to a datagridview in vb.net
I have a dataset with four fields like id, name, address, phone,
but i need to display only the id, name in the datagrid.
I dont want to create a new dataset to hold only id, name.
After I display the datagrid, once the user selects the particular row, i need to return the id value from the selected row.
Thanks.
Displaying only selected data to datagrid
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Geoff4 reputationPosted Aug 20, 2010, 6:24 AM EDT
David Carter59 reputationPosted Aug 23, 2010, 10:37 PM EDT
Goto Columns and click on the little ... button beside the word (Collection)
Select the column Address and under Appearance, make Visible = False.
Same with Phone.
D.