Corrected DataGrid common initial function