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

Inserting Columns in A Grid

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
This is one of those things that's too obvious to have been overlooked.

I need to insert another column into the middle of a grid. When I add a column, it's on the right. How can I put that in the middle? The usual cut&paste tools don't seem to work. Or am I missing something?

TIA
Shanachie [sig][/sig]
 
Hi Shanachie,

It sounds like you are doing this at design-time. Click on the header and drag -n- drop. Also, check out the ColumnOrder property of the Column object.

If you are doing this programmatically:

MyGrid.AddColumn(2) && Insert column in position 2 [sig]<p>Jon Hawkins<br><a href=mailto: jonscott8@yahoo.com> jonscott8@yahoo.com</a><br><a href= > </a><br>The World Is Headed For Mutiny.....When All We Want Is Unity. - Creed[/sig]
 
Yup, it works! Just what I needed.

Thanks!

Shanachie [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top