private void _BindService() { DatabaseConnectivity dbcon = new DatabaseConnectivity(); List <Client> service = dbcon.getClientList(); if (service.Count > 0 && service != null) { GridView1.DataSource = service; GridView1.DataBind(); } }