How to update records in datagrid?

hi guys,
i want to update my datagrid records.how can i do this?