Click here to Skip to main content
15,891,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have bound the Text property of a textbox to a column of a datagridview like the following:
dataGridView1.DataBindings.Add("Name", textBox1, "Text");
I have tried typing some text in the textbox but the value of the cell in the column bound to textBox1 (column "Name") didn't reflect the text in the textbox unless I clicked on the current cell and moved to other.
Is there any way to make it reflect the changes while typing in the textbox?
Thank you so much!
Posted
Updated 15-Sep-11 17:33pm
v2

1 solution

Use Text Change event or key up event of textBox1 to assign text value to cell

Why you Adding TextBox dynamically to grid, You can add column as textbox columns in gridview by selecting the Type in add column button
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900