Array table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had 4 arrays

string [] LastName;
string [] FirstName;
string [] BirthDay;
string [] Phone;

What is the good way to store these information in a table? and when user
click on LastName/FirstName (as a keyword on combobox) then all other
information display on text boxes.

thanks
 
Since they are all the same type, an easy way
would be to store the information in a 2d array:
string[,] people;

But a better way, particularly if you're the data is
coming from a database is to use a DataTable:
System.Data.DataTable people = new DataTable.

There's a variety of ways to get the interaction with
the combo box. It really depends.
 
Back
Top