Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
i m working with in visual c#
i want to bind the datagridview runtime with the datatable
i m featching the values from database to datatable
and that table i want to bind with datagridview as per my req.

iwant to do this when my autogenerated property=false;

how can i do that..
eg. i have fatch 2 coloum from database to datatable
billno billcharg
and now i want to display the datagridview as
billno ,billcharge and amount [this is not the field of database].

pls give me the solution on this.....
thanks
Posted

1 solution

See an example Here[^] to learn how to bind DataTable to a GridView.
 
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