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

Grid Control - HOW TO delete Textbox 1

Status
Not open for further replies.

FoxEgg

Programmer
Mar 24, 2002
749
AU
OK I create a grid
it has

COLUMN1
HEADER1
TEXT1


ie all the usual stuff...

I use the right click... edit... and add a container to the Column1

Then I add a TEXTBOX to the Container

OK so how do I delete the ORIGINAL TEXT1 from the Grid

I know it is possible....but how...

OR even better... how do I change the level of indentation...

ie

I have

COLUMN1
HEADER1
TEXT1 <<<<---***
CONTAINER1
TEXT2 <--- I want to keep this one
COLUMN2
HEADER1
TEXT1
COLUMN3
HEADER1
TEXT1

How do I get rid of the one shown <<<<--***

Thanks in advance...

John Fox
 
HI

In the property window select the column1.text1
Now.. click on the header area of the form ..
and press the delete key
The Text1 will be gone :) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Thanks (again) Ramani ...

This is a very useful tip and the delete trick is hardly 'intuitive' ...

More of an ongoing (same) problem ...

I put a container object in the column of the Grid
and tried to put textboxes in the container.. but they all came out at the same level of indentation...

I am not certain how to make them indent down one level..

Thanks for the delete help.. very very useful.

John Fox
 
FoxEgg

I put a container object in the column of the Grid
and tried to put textboxes in the container.. but they all came out at the same level of indentation...


Can you explain what this means? You should put you textbox on the container before you use your container as a currentcontrol of your grid. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Ooops.. you are right...

Since I wrote that question.. I checked with my Appdev Disks.. and you are right..

I have to create a Class with exactly what you say..
ie a Container with a Textbox within

(Having never created my own class before.. it was not suprising that I stuffed that one up)

Off to create my own Class... Thanks Mike

JF (11:09pm temp 22C)
 
Hi John Fox..

1. Drop the container in the form (not on the grid)
2. Now Edit it and add other container or textbox etc class into the container class.
3. Now select this constructed class..
RoightClick over it and copy it into your clipboard..

4. Select the Grid1.ColumnN in the propertysheet.
Right Click on FormDesigners TitleBar
Select Paste
The constructed container will be in the grids column
with the levels you are talking about.

:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top