How to Make textbox autocomplete?
-
How to Make textbox autocomplete?
-
How to Make textbox autocomplete?
-
How to Make textbox autocomplete?
-
i changed AutoCompleteMode ==>suggest Autocmpletesource ==>Customersourc In foreach (DataRow row in (SelectAccounts().Rows) { textBox1.AutoCompleteCustomSource.Add( row["Account_Name"].ToString()); } it worked successfuly and displayed names in table Account now i want to get id for accountname that user enter SelectAccounts() return table accounts{id,Account_Name}
-
i changed AutoCompleteMode ==>suggest Autocmpletesource ==>Customersourc In foreach (DataRow row in (SelectAccounts().Rows) { textBox1.AutoCompleteCustomSource.Add( row["Account_Name"].ToString()); } it worked successfuly and displayed names in table Account now i want to get id for accountname that user enter SelectAccounts() return table accounts{id,Account_Name}
OK, so loop through the rows again until you find the one where the account name matches what they entered in the
TextBox
and then grab the ID from that row. If you want to get fancy about how you do it then you could probably do it using Linq but looping and searching will work just fine.:badger: