ok, thanks. let me see if it works for me ;)

On Wed, Apr 15, 2009 at 3:06 AM, The_Fruitman
<[email protected]> wrote:
>
> 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



-- 
Best Regards,
David Shen

Reply via email to