Click here to Skip to main content
15,915,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anyone can help me that how to bind with Sqldatareader with DataGridView1 in C#. I knew that we can bind datagrid1.datasource= reader;
datagrid1.databind(); in asp.net but in C#.net for windows I'm unble to bind like the same..
why i could not bind in sameway..and what is the procedure to bind a reader to datagridview in c#
Posted

1 solution

This should get you started: How to populate DataGridView, GridView with SQL statement in C#[^]

It compares the two (web and winforms) and shows (a) method of doing it.
 
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