how to transfer data from textbox to gridview?
-
i have two windows form, in one form i have a textbox, in another form,i have a gridview, all i want is how to transfer the data from textbox to gridview after i click the button?
-
i have two windows form, in one form i have a textbox, in another form,i have a gridview, all i want is how to transfer the data from textbox to gridview after i click the button?
-
ganesh kumarrr wrote:
all i want is how to transfer the data from textbox to gridview after i click the button?
In the event handler for the button. Take the text from the text box and put it in the gridview. Or do I misunderstand your question?
s u are correct, but how to code it?
-
s u are correct, but how to code it?
ganesh kumarrr wrote:
how to code it?
Read the documentation on TextBox and GridView classes. In there you will discover all the properties and methods that will allow you to accomplish this task, plus you will learn all sorts of good things that will help you in the future.
-
ganesh kumarrr wrote:
how to code it?
Read the documentation on TextBox and GridView classes. In there you will discover all the properties and methods that will allow you to accomplish this task, plus you will learn all sorts of good things that will help you in the future.
You're translator is broken
Richard MacCutchan wrote:
ganesh kumarrr wrote: how to code it?
This = snd codz plz I did like you response though.
Never underestimate the power of human stupidity RAH
-
i have two windows form, in one form i have a textbox, in another form,i have a gridview, all i want is how to transfer the data from textbox to gridview after i click the button?
add a string variable int the form that has the grid view. overload the constructor that take a string argument. You have to initialize the string variable by the given parameter.Then call the constructor from the form that has the texbox as follows: gridviewform f = new gridviewform(texbox1.text); f.Show(); write this code in the formload event of form that has the grid view. int p = dataGridView1.Rows.Add(); dataGridView1.Rows[p].Cells[0].Value = your string variable