Recommended

Skip Navigation LinksHome / News / View News

Simple trick for getting right the DataGrid’s SelectedItem

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Jul 29, 2010
(0 votes)
Tags: DataGrid , Business Applications , Jose Luis Latorre Millas
In this post, Jose Luis Latorre Millas discusses how to set the SelectedItem on the corresponding DataGrid property.

I have been developing a Silverlight business application and one of the problems I have found is the “inconsistency” of the DataGrid… at least of some of its behaviors, when I click on a row, I expect that the SelectedItem (the clicked one) is set on the corresponding DataGrid property.

But it does not. at least not “always”, lets be clear maybe I’m doing something wrong but this randomness on this behavior is driving me crazy, if I click on a Grid row, it should select it and mark the SelectedItem on the corresponding property, right? 

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 4 and 2 and type the answer here:

Did you notice our new Silverlight-based Showcase section ? Check it out to get a bird's eye view of all showcases featured on SilverlightShow, with a quick thumbnail preview for easier browsing. Want to view the most recent showcases only? Use Group by Month option for a chronological listing.
This is the second redesigned, entirely Silverlight-based section in SilverlightShow, after the new Books section. We look forward to your feedback on both! (hide this)