/// <summary>
        /// 当前所选内容更改时发生
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

 private void dgvUserList_SelectionChanged(object sender, EventArgs e)
        {
            for (int i = 0; i < dgvUserList.RowCount; i++)
            {
                DataGridViewLinkCell dgvc = dgvUserList.Rows[i].Cells["Column3"] as DataGridViewLinkCell;
                dgvc.LinkColor = Color.Blue;
            }

            DataGridViewLinkCell dgv;
            dgv = dgvUserList.CurrentRow.Cells["Column3"] as DataGridViewLinkCell;
            dgv.LinkColor = Color.White;
        }

相关文章:

  • 2021-09-15
  • 2021-12-04
  • 2021-06-03
  • 2021-09-02
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2021-07-26
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案