Cyberiafreak

"Fortunate are those who take the first steps.” ― Paulo Coelho

WPF Grid controls requires two click event.

Problem : Controls inside the WPF grid requires two click events to respond or to set active.

Context: Let assume, you’ve got checkboxes inside the WPF grid generated runtime by AutoGenerateColumns=”true” feature. On first click of the grid checkbox, you would expect the control to be checked, but not the case. It will take 2 click events to select the checkbox state to “Checked”.

Solution : There is a workaround to tunnel the event to the actual control. Here is the article explained already in detail along with code.

 Link : http://wpf.codeplex.com/wikipage?title=Single-Click%20Editing&ANCHOR

Any other workaround do you see here?

Advertisements

October 5, 2010 - Posted by | Uncategorized

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: