hi my freind im wanat to insert data in data grid view from text box for example when the mouse leave the text box then data transmit into dbgrid view from text box could you help me to do this, thank you ;-)
pashaa
0
Newbie Poster
Recommended Answers
Jump to PostWelcome pashaa,
Show us your code work please.
Jump to PostI wrote simple example and I hope it helps you:
first add textbox & datagridview
then write this code in textbox_mouseleave event:private void textBox1_MouseLeave(object sender, EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("col name", typeof(string)); DataRow DR = dt.NewRow(); DR["col name"] = textBox1.Text.ToString(); dt.Rows.Add(DR); dataGridView1.DataSource …
All 6 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
tweety1313
0
Newbie Poster
pashaa
0
Newbie Poster
udaraps
0
Newbie Poster
Geekitygeek
480
Nearly a Posting Virtuoso
sbglobal
-3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.