初始化时查看combox的文本内容

 string sql = string.Format("select field_name from pt_temp_field where pt_name = '{0}' and temp_code='{1}'", ((DataRowView)cmb_pt.SelectedItem).Row["pt_name"].ToString(), gridView2.GetDataRow(gridView2.FocusedRowHandle)["temp_code"].ToString());

原文地址:https://www.cnblogs.com/wuhailong/p/3772088.html