Created dynamic grid in Windows