working with DataGrid and TextBox

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I have DataGrid table and TextBox in my form. the table contains names and i
use the textBox to enter letters to search specific customer. i want that the
user will be able to navigate the DataGrid with the UP and Down arrows while
the focus is on the TextBox and to mark the selected row.

for example, when the form loads,the focus is on the Textbox and the first
row is marked, the textbox is empty. i enter G and the table contains all the
names that begins with a G, the focus is still on the textbox and the first
name that begins with a G is marked, now, i saw that the name i look for is
at the 3rd row, so i want to navigate with the down arrow to this row, and
each time i press the down arrow i want the row i point at will be marked and
if the user will decide to add to the G also I, the focus will be back to the
textBox which will contain now GI.

how can it be done?

thanks
.



Relevant Pages

  • Re: Controls
    ... row of the DataGrid), columns 4 to 9 change to TextBoxes & the Edit ... Dim txtCity As TextBox ... Isn't Controls(0) the Label control & Controls ...
    (microsoft.public.dotnet.framework.aspnet)
  • Controls
    ... A Form has a Label & a DataGrid. ... Dim txtCity As TextBox ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Controls
    ... again a TemplateColumn (with a Label), ... row of the DataGrid), columns 4 to 9 change to TextBoxes & the Edit ... Dim txtCity As TextBox ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DataGrid Edit Problem
    ... put the value rn5a into the textbox. ... Assume that the DataGrid gets bound in the Page_Load sub after every ... the UpdateCommand event (which fires after ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DataGrid Edit Problem
    ... Then the state of the new controls are set using the viewstate. ... put the value rn5a into the textbox. ... Assume that the DataGrid gets bound in the Page_Load sub after every ... the UpdateCommand event (which fires after ...
    (microsoft.public.dotnet.framework.aspnet)