cost name getting query + added it on grid