public void bindgrid() { BrilliantWMS.WMSOutbound.iOutboundClient Outbound = new WMSOutbound.iOutboundClient(); try { CustomProfile profile = CustomProfile.GetProfile(); DataSet ds = new DataSet(); ds = Outbound.BindOutboundGridForReturn(profile.DBConnection._constr); grdSalesOrder.DataSource = ds; grdSalesOrder.DataBind(); grdSalesOrder.AllowMultiRecordSelection = true; grdSalesOrder.AllowRecordSelection = true; } catch { } finally { Outbound.Close(); } }