private void ResetSelectData() { selectData = new StreamData(); dgv_stream.DataSource = StreamOperator.GetStreamName().Tables[StreamData.STREAM_TABLE].DefaultView; streamdata = StreamOperator.LoadStreamInfo(); DataRow[] odr = streamdata.Tables[StreamData.STREAM_TABLE].Select(StreamData.NAME_FIELD + "='" + selectStream + "'"); foreach (DataRow row in odr) { selectData.Tables[StreamData.STREAM_TABLE].Rows.Add(row.ItemArray); } dgv_selectModule.AutoGenerateColumns = false; dgv_selectModule.DataSource = selectData.Tables[StreamData.STREAM_TABLE].DefaultView; }
private void StreamForm_Load(object sender, EventArgs e) { //最左边的大表 dgv_stream.AutoGenerateColumns = false; dgv_stream.DataSource = StreamOperator.GetStreamName().Tables[StreamData.STREAM_TABLE].DefaultView; streamdata = StreamOperator.LoadStreamInfo(); dgv_allModule.AutoGenerateColumns = false; moduledata = ModulesOperator.LoadModulesInfo(); dgv_allModule.DataSource = moduledata.Tables[ModuleData.MODULES_TABLE].DefaultView; //dgv_selectModule.AutoGenerateColumns = false; //dgv_selectModule.DataSource = selectData.Tables[StreamData.STREAM_TABLE].DefaultView; pageStatus = RecordStatus.View; SetFormControlerStatus(); SetFormControlerData(); }