Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam new to vb 6.0 programming. I have a datagrid which displays invoice details from an access database table. How can I clear the datagrid contents if I want to show another invoice details?
Posted
Updated 3-Mar-18 3:32am
v2
Comments
Maciej Los 18-Jul-13 6:07am    
What have you tried?

1 solution

C#
gridview.DataSource=null;
gridview.DataBind();
 
Share this answer
 
Comments
SITU.PATI 18-Jul-13 7:07am    
DATAGRIDVIEW1.DATASOURCE=NOTHING.
IT MAY HELP YOU
Nirav Prabtani 18-Jul-13 7:09am    
thanks for help.

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