0

I am creating a master-details in windows form.

I created data source from entity model, then added master table from data source to be as application-form so I choose "Details" mode to display one row only.

Then I added the details table as DataGridView mode to display all details row linked to the master row.

The problem is the column order is changed in the data source, not as the order in DB table, so the navigation order between columns is changed.

How to change the default "next item navigation" between textboxes by pressing tab in master textboxes?

Note: I meant "details" with " " is display mode in the data source, while details without " " means foreign key data.

David Ferenczy Rogožan
  • 23,966
  • 9
  • 79
  • 68
Dev X
  • 353
  • 2
  • 15
  • You may try to set the TabIndex properties of that text boxes pertinent to the required navigation order. Best regards, – Alexander Bell Feb 25 '16 at 00:01
  • @AlexBell , your comment is really helpful, and solve the problem. I checked the property many times without noticing it, I was surprised with 20 views without any answer for this question, so thank you. – Dev X Feb 25 '16 at 10:43
  • I am glad it works for you. Please mark the question answered if you are satisfied with the solution. Best regards, – Alexander Bell Feb 25 '16 at 13:41

1 Answers1

0

Pertinent to your question, the navigation order between TextBox Controls can be defined by setting their TabIndex property correspondingly. Best regards,

Alexander Bell
  • 7,842
  • 3
  • 26
  • 42