1

Topic: User control item in DataGridView and ENTER key

Greetings to all. I develop for DataGridView an own column for an output of the Surname, a name and a patronymic in one column. For editing of cells in it I use the own controlling element having three entry lines. It would be desirable to make so that at pushing ENTER key when focus is either in the first, or in the second entry line focus was transferred to the following entry line but only on last there would be a standard response to pushings to this key: an output from an editing mode of a cell and passage to new cell DataGridView. Do not prompt, how it can be made? Thankful in advance

2

Re: User control item in DataGridView and ENTER key

Hello, Melamed, you wrote: M> Greetings to all. M> I develop for DataGridView an own column for an output of the Surname, a name and a patronymic in one column. For editing of cells in it I use the own controlling element having three entry lines. It would be desirable to make so that at pushing ENTER key when focus is either in the first, or in the second entry line focus was transferred to the following entry line but only on last there would be a standard response to pushings to this key: an output from an editing mode of a cell and passage to new cell DataGridView. Do not prompt, how it can be made? M> thankful in advance 1. We remember in what data entry field from three received focus 2. We process pushing Enter according to point 1. <TextBox> <TextBox. InputBindings> <KeyBinding Key = "Enter" Command = "{Binding EnterKeyCommand}"/> </TextBox. InputBindings> </TextBox>

3

Re: User control item in DataGridView and ENTER key

MM> MM> <TextBox> MM> <TextBox. InputBindings> MM> <KeyBinding Key = "Enter" Command = "{Binding EnterKeyCommand}"/> MM> </TextBox. InputBindings> MM> </TextBox> MM> and me it seemed that a question about