How can i set the cursor type to hand, when the cursor is over a specific cell in the datagridview?
Thanks!
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Riddhi ValechaRank #794 · 2.9K reputationPosted Apr 16, 2013, 2:50 AM EDT
Hi... See if this code helps you out. --------- private void dgData_CellMouseEnter(object sender, DataGridViewCellEventArgs e) { if (IsValidCellAddress(e.RowIndex, e.ColumnIndex)) { dgData.Cursor = Cursors.Hand; } } private void dgData_CellMouseLeave(object sender, DataGridViewCellEventArgs e) { if (IsValidCellAddress(e.RowIndex, e.ColumnIndex)) { dgData.Cursor = Cursors.Default; } }Violeta Popa132 reputationPosted Apr 16, 2013, 7:58 AM EDT