private void simpleButton1_Click(object sender, EventArgs e) { if (gridView1.GetFocusedRow() == null) { return; } DataItem current = new DataItem(); current = (ProWrite.Entity.DataManager.DataItem)((gridView1.GetFocusedRow())); //string name=gridView1.GetDataRow(gridView1.FocusedRowHandle)[0].ToString();//.RowHandle) //foreach (DataItem dItem in DataGate.Project.DataSources) //{ // if (dItem.Name == name) // { // current = dItem; // } //} if (current == null) { return; } //dataItem=gridView1.foc DataPassThroughDetail item = new DataPassThroughDetail(current); item.ShowModalDialog(); if (item.IsRefresh) { InitData(); } }
private void btnAdd_Click(object sender, EventArgs e) { DataPassThroughDetail item = new DataPassThroughDetail(null); item.ShowModalDialog(); if (item.IsRefresh) { InitData(); } }