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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grid, memo field, push button

Status
Not open for further replies.

shumi99

Programmer
Mar 3, 2010
30
US
Hi,

I'm at a loss of how to do this, myabe becuase it's Friday and my brain is on "low"....LOL

Here's what I have.

1 grid with many fields including a "memo field".

I would like it so that the "memo field" is a push button and when the user clicks on it, it brings the content of the memo field in aonther windows.

so, 1 - how do I get the memo field in the grid to "become" a push button?

please help.

thanks,
Shumi1
 
Hi

You will need to add a command button to the column, then delete the existing text/edit box first (or make the command button the current control) you will probably have to make the sparse property of the column set to false (the default is probably true).

Then make sure there is no control bound to the column...

After that you just set the click property of you button to open a window with the memo contents in it!

Good luck
(I don't THINK I missed anything)

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Ah, I knew it's because it's Friday!!...LOL Thanks, got it.

Actually, it was because I wasn't deleteing the existing textbox/editbox.

Thanks again!

Have a great weekend! :)
 
"how do I get the memo field in the grid to "become" a push button?"

Do you actually need the Memo field to be a push Button?

Or can the user merely click (or double click) on the associated Grid field and have that action launch your desired secondary operation for that specific record?

If the former, then Griff's suggestion is good.

If the later, just put the appropriate code into the Grid.Column.Text.Click event (or DblClick event).

Actually when I have done something like this myself, I have not shown the Memo field itself in the Grid. Instead I created a DispMemo field and put a part of the Memo fiel data into it (such as LEFT(MemoData,10)).

Then I had the Grid show the DispMemo field instead of the Memo field itself and the user could then visually see what might be in the memo field and if it was worth 'drilling down' into for more detail.

Good Luck,
JRB-Bldr
 
It works perfectly for me. :)

Thanks all! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top