I'm not familiar with the Silverlight 2 datagrid, but I have worked with the WPF datagrid and I'm sure that the two have similar abilities. For the WPF datagrid there is a MouseLeftButtonUp event (among others). This will pass an object and MouseButtonEventArgs. I then use the MouseButtonEventArgs e.OriginalSource and cast it as a dependency object. I take the dependency object and traverse the visual tree to get the row and column that the user clicked on. HTH
On Apr 14, 6:46 am, David Shen <[email protected]> wrote: > Hi, > > I am new to silverlight 2. I found that the row in a datagrid do not > have the click event. How can I set up a click event handle on each > row of the datagird? A solution I could figure out is to create the > columns manually, and make each of a button control, and bind click > event on the button. But I think it is really a silly solution. Does > anyone has better idea? > > -- > Best Regards, > David Shen
