I have several textboxes for First name, Last name, employee number and a listview on a form; depending on the values in the textboxes, how do idynamically bind the values in the textboxes to be displayedin the ListView in c#?
Thanks
omogen Friday, September 11, 2009 7:46 AM
Hi omogen,
If we want to "synchronize" the data among the TextBoxes and the ListView, we can create a BindingSource and set its DataSource property to the data source. Then we can bind all the TextBoxes and the ListViewthis to this BindingSource.
Regards, Aland Li Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
What is your data source? Also, I did not understand fully. Are you saying that you have a ListView where each item would represent a "record" of your data, and therefore you want to "synchronize" the selection of the item in the ListView with the contents of each textbox?MCP
webJose Friday, September 11, 2009 1:18 PM
Hi omogen,
If we want to "synchronize" the data among the TextBoxes and the ListView, we can create a BindingSource and set its DataSource property to the data source. Then we can bind all the TextBoxes and the ListViewthis to this BindingSource.
Regards, Aland Li Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.