Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6785871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:10:43+00:00 2026-05-26T17:10:43+00:00

I am handling cell content click event. When user clicks the content of a

  • 0

I am handling cell content click event.
When user clicks the content of a cell it captures accurately.

Consider the case, where I have DataGridViewLinkColumn at column 3
But after clicking a cell ( say row 1 column 3), when the user accidently clicks at any of the table Header,cellclick event is retained i.e. it calls CellContentClicked event with same RowIndex and ColumnIndex(row 1 and column 3).

How to avoid this?
Pls help..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:10:44+00:00Added an answer on May 26, 2026 at 5:10 pm

    I have found the answer..
    On clicking the table header, cell click is fired for previous selected cell.

    We can limit this functionality by adding the condition,

    if (e.CoumnIndex >= 0 && e.RowIndex >= 0)
    {
    
      // Add  Logic neccessary for Cell Click event
    }
    

    (As rowIndex is -1 for Header row)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ExtJS Class Handling is good to handle, but you have to pay it with
I was handling yet another KeyDown event in a user control when I wondered
I am using WPFToolKit DataGrid to display data; In my use case user clicks
Exception Handling in java based we services JAX-WS. I want to create user defined
when handling data, i always have to write the following: var dataSourceRequest:URLRequest = new
In a quest for handling events (like mouse moves and clicks) not by subclassing,
I am currently handling the KeyDown event of a DataGridView control. One of the
I have (in D2010) a TDrawGrid on my form. Im handling my OnDrawCell, OnSetEditText,
I have TableCellViewController for managing cells in my UITableView. Each cell has a label
I have a XtraGrid with one GridView, with a column with checkbox repository item.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.