private void dgOrders_CellContentClick(object sender, DataGridViewCellEventArgs e) { localhost.Service1 s = new localhost.Service1(); bool x = true; //if (e.ColumnIndex == 9) //{ BindingSource bnd = new BindingSource(); bnd.DataSource = s.GetShoefromOrders(e.RowIndex, x); gvSelectedOrder.DataSource = bnd; //} }