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

Gridview columns

Status
Not open for further replies.

BasicBoy

Programmer
Feb 22, 2008
156
ZA
I need to bind the first 4 columns of the gridview with fields from a datatable and then add edit and delete buttons after that (on right hand side) on every row and then add a new entry button on the top row - row 1
If I use autogenerate columns with edit and delete columns it mixes up all the columns and places the two butotns columns on the left hand side.
Is there a way I can programmatically in VB.NET add the field and button columns?
I am new to gridview and have used datagrid previously - but there is a world of difference that I cannot bridge.
Thanks
 
You need to set AutoGenerateColumns = False. This way you can define the columns any way you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top