View Single Post
  #1 (permalink)  
Old April 12th, 2007, 09:56 PM
elygp elygp is offline
Authorized User
Join Date: Oct 2006
Location: , , .
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Selecting Text When Editing Datagrid


I have an application that uses a datagrid with EDIT column. The program runs fine and I am able to edit the column of datagrid using the code :

 Datagrid1.EditItemIndex = E.Item.ItemIndex

The code works fine, however, I believe it would be more user friendly if I can make the data of the column to be selected automatcially when EDIT button is clicked. Because what happens in the application is, when you click EDIT button, the data will be displayed for editing, and you will have to click again the mouse to the textbox to edit the data. I would want the focus to go to the textbox automatically so that user can immediately enter new data.

Thanks so much in advance!