I have a form which contains 2 buttons , a datetimepicker and datagridview which binds to a table in the database.My question is: How can i refresh the datagridview displayed data every time i press a different button or when i switch the date.
Share
reset your datasource in datagridview control and reasign it again to new datatable or dataset
when you click button or when you change data in your datatimepicker control
call this function on button click event