Пример #1
0
		private void gridControl_StudentAdjust_DoubleClick(object sender, System.EventArgs e)
		{
			int selectedRow = gridView3.GetSelectedRows()[0];

			string stuName = gridView3.GetDataRow(selectedRow)["info_stuName"].ToString();
			string stuGrade = gridView3.GetDataRow(selectedRow)["info_stuGrade"].ToString();
			string stuClass = gridView3.GetDataRow(selectedRow)["info_stuClass"].ToString();
			string stuType = gridView3.GetDataRow(selectedRow)["info_type"].ToString();

			ErrorHandlingForGradeChange errorHandling = new ErrorHandlingForGradeChange(stuName,stuGrade,stuClass,stuType,3,"无法找到匹配的幼儿信息!");
			errorHandling.StartPosition = FormStartPosition.CenterScreen;
			errorHandling.ShowDialog();
			
			htUpdateInfo = errorHandling.UpdateInfo;

			gridView3.SetRowCellValue(selectedRow,"info_stuName",htUpdateInfo["name"].ToString());
			gridView3.SetRowCellValue(selectedRow,"info_stuGrade",htUpdateInfo["grade"].ToString());
			gridView3.SetRowCellValue(selectedRow,"info_stuClass",htUpdateInfo["class"].ToString());
			gridView3.SetRowCellValue(selectedRow,"info_type",htUpdateInfo["type"].ToString());
		}
Пример #2
0
		private void ShowErrorHandling(string getName,string getGrade,string getClass,string getType,int errorCode,string errorMsg)
		{
			ErrorHandlingForGradeChange errorHandling = new ErrorHandlingForGradeChange(getName,getGrade,getClass,getType,errorCode,errorMsg);
			errorHandling.StartPosition = FormStartPosition.CenterScreen;
			errorHandling.ShowDialog();
				
			htUpdateInfo = errorHandling.UpdateInfo;
		}