C# Patterns

Tuesday, February 18, 2014

How to disable selection in DataGridView?

        private void dataGridView1_SelectionChanged(object sender, EventArgs e)
        {
            dataGridView1.CurrentCell.Selected = false;
        }
Posted by Intercept Wind at 5:18 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
Intercept Wind
View my complete profile

Blog Archive

  • ►  2016 (3)
    • ►  December (2)
    • ►  April (1)
  • ►  2015 (3)
    • ►  November (1)
    • ►  October (1)
    • ►  February (1)
  • ▼  2014 (20)
    • ►  July (1)
    • ►  May (3)
    • ▼  February (16)
      • How to communicate between forms?
      • How to use threading with buffer (with correct way...
      • How to use custom cursor from resource?
      • How to disable selection in DataGridView?
      • How to disable close button on winForm?
      • How to do Inter-Process Communication through Name...
      • How to make font bold and italics?
      • How to read write XML files?
      • How to make textbox a password text box?
      • How to encrypt and decrypt files?
      • How to draw rounded rectangles / borders?
      • How to have custom font?
      • How create rounded corner form?
      • How to make font resize automatically based on lab...
      • How to move borderless forms?
      • How to resize borderless forms?
Simple theme. Powered by Blogger.