Click here to Skip to main content
16,020,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I create datagridviewbutton cell at run time .but when refresh datagridview , that column(datagridviewbutton) is delete. how to save change on datagridview ?

Posted
Updated 10-Apr-15 11:34am
v5
Comments
Florian Braun 10-Apr-15 5:46am    
I might be totaly wrong but isn't a datagridview only the representation of a datatable? wouldn't it be the right way to add the column to the table, not to the view?
Sinisa Hajnal 10-Apr-15 6:55am    
Add the field new_pay_ghest to the datatable, not to the grid. OR if you're set on doing it this way, then you have to add it whenever you reset grid binding.
Joan Magnet 10-Apr-15 8:59am    
What's the value of AutoGenerateColumns property?

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