Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some records in my dataset.To bind this table to datagridview
i am using this code

C#
datagridview1.datasource=ds.tables[0];

But i don't want to bind all records to gridview.I want to bind only one record.any one help?
Posted
Updated 23-Dec-10 22:08pm
v2

Make a new table of filter data which you wants to display and bind it to datagridview

You can filter data by foreach loop or you can use linq
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900