Problem related to grid
-
I have a grid and some textboxes Grid have data from database and i added a EDIT button with fields. The thing i want is----> Whenever i click on edit button the data associated with it will get display in textbox. I hope u all got what i want. Thanks in advance.
-
I have a grid and some textboxes Grid have data from database and i added a EDIT button with fields. The thing i want is----> Whenever i click on edit button the data associated with it will get display in textbox. I hope u all got what i want. Thanks in advance.
So whats the problem? In the button click event, get the info from the selected cell of the grid, and put it in the text box. Which bit are you having difficulty with? What have you tried?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
I have a grid and some textboxes Grid have data from database and i added a EDIT button with fields. The thing i want is----> Whenever i click on edit button the data associated with it will get display in textbox. I hope u all got what i want. Thanks in advance.
OriginalGriff is Correct, if you want to edit the gridview in ASP.net, you must enable the appropriate properties that will show you the edit,Delete and update per row and if you click on Edit,you do not need to write a code to do that, ASP.NET already will do it for you. The Values will be Presented in a Textbox , and in edit more for you to edit and the Update and Cancel Button will be available options for you.
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
So whats the problem? In the button click event, get the info from the selected cell of the grid, and put it in the text box. Which bit are you having difficulty with? What have you tried?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
lalit14 wrote:
Nothing clicking in my mind, what code to write in it?
Write a button click event handler, hooked to your button. In the handler, write the code to: 1) Find the selected cell in your grid. 2) Get the text from the cell. 3) Put the text into your TextBox. At least two of these are simple, one-line-of-code-at-the-most bits of software. What have you tried?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
lalit14 wrote:
Nothing clicking in my mind, what code to write in it?
Write a button click event handler, hooked to your button. In the handler, write the code to: 1) Find the selected cell in your grid. 2) Get the text from the cell. 3) Put the text into your TextBox. At least two of these are simple, one-line-of-code-at-the-most bits of software. What have you tried?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
You are welcome! Glad to hear it.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones