/// <summary>主表选中事件 /// /// </summary> /// <param name="sender">sender</param> /// <param name="e">e</param> private void objListViewMaster_SelectedIndexChanged(object sender, EventArgs e) { if (objListViewMaster.SelectedObjects.Count == 0) { return; } OrderMaster model = objListViewMaster.SelectedObjects[0] as OrderMaster; if (model != null) { m_lstOrderDetail = m_OrderDetailDAL.GetListArray("OrderId=" + model.OrderId + ""); objListViewDetail.SetObjects(m_lstOrderDetail); objListViewDetail.Refresh(); } }