摘要:
问题:DataGridView某单元格数据与combobox对应项显示?解决:this.combobox1.SelectedIndex = this.combobox1Items.IndexOf(this.DGVPerson[2, this.DGVPerson.CurrentCell.RowIndex].Value.ToString()); 阅读全文
摘要:
问题:DataGridView表格显示删除行?解决:foreach (DataGridViewRow dgvr in DGVHypo.SelectedRows){ this.DGVHypo.Rows.Remove(dgvr);}这只是在DataGridView上删除行,不没有真正在数据库中删除。 阅读全文
摘要:
问题:当DataGirdView某列是隐藏的,如何获得这个隐藏列单元格的值?解决: this.DGVClient.CurrentRow.Cells["id"].Value.ToString() 阅读全文