Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Buttons in Grid

Status
Not open for further replies.

MaryG

Programmer
Mar 26, 2001
26
AU
Hi,

Does anyone know how to place command buttons in a grid? I have a grid that displays records from a file. One of the columns displays 'Notes'. I want to display as much of the notes as I can in the grid and then provide a button next to the column in each row that will pop-up the full notes field for the user to display/edit.
I can get this to work for 1 row but when it tries for the next row it says the object already exists - I guess because it is trying to put another control in with the same name?
I am able to display a combo-box control in the grid by adding it at run time and have tried to do the same with a command button but I get the error that it already exists.

Has anyone done this successfully or have any other ideas on how I can do this?

I would appreaciate any help.
Thanks
Mary
 
Cannot you put the codes you want to put on the command button... in the click event of the same column containing the data. Another alternative is to put the same codes in the GotFocus event of the same control, so that the edit box opens with full data.
Hope this idea works for you. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Thanks. I decided to use the click event in column instead and that works fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top