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