I have datagridview with one CheckBox column

I have CellClick event for this datagrid

even if user click outside the checkbox but within column cell, cellclick event get trigerred but checked value dosen get changed.

How to know if user have clicked inside the checkbox to control cellclick event

Thanks

You're going to get a cellclick event if a click is registered within the cell. That's at a higher level than focus of the internal control, so you can't avoid it. Your best bet would be to determine the mouse position for the click and cancel the cellclick if it's not within the checkbox bounds.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.