I am having some troble.
I can get a treeview with A, B, C.......Z
Here under each of the letters I want my Contacts Last name get under correct Letter.
For example Andersson should be under A
I have managed to do a search for the contact and getting a list back with all that includes for example A.
My problem is I want it into the treeview. How do I do that?
and so on
Please advice me......some code would be great
private void button1_Click(object sender, EventArgs e)
Contact cust = new Contact();
cust.FirstName = textBox1.Text;
cust.LastName = textBox1.Text;
List<Contact> searchList = new List<Contact>();
char outstr = ('A');
for (int i = 1; i < 27; i++)
node = treeView1.Nodes.Add(Convert.ToString(outstr));
searchList = contactManager.FindALetterSearch(outstr);
outstr += (char)(+1);