Hi
Pls try the attached sample.user need to get focus on cell before doubleclick
>Hi Everyone,
>
>Now I’m designing a datagrid system. I stuck by double click event.
>
>I read the article http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q869q carefully.
>
>This method is working, but I still have some questions on this article.
>
>1. How can I get the row number if I catch the double click event? Yes, I can get the text of the double clicked cell. But I don’t know get the row number.
>2. I must double click an unselect row if I use this method. Is there a method to get the double click event if I double click a selected row?
>
>
>I imaged my datagrid is like that:
>
>1.A datagrid row will be highlight(selected) when I single click a row. It is easy.
>2.I can get row and column number if I double click a cell. Whatever it is selected or unselected. It is too hard to me.
>
>
>Could you enlighten me?
>
>
>Thanks
>
datagrid2.zip