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!

template column but not the first one?

Status
Not open for further replies.

ARCITS

Programmer
Apr 4, 2002
99
GB
I have a bound datagrid control and have successfully added additional template/click button columns.
However these always appear at the start of the grid. Can I have these columns anywhere, e.g. in the middle of the bound columns?


Thanks
 
Hi ARCTIS

Is this a problem with adding columns programatically? The DataGrid.Columns.Add() method only takes one parameter, the column to add and is not overloaded to take another parameter for column location. I found this frustrating too. Would be interested to hear if you have foudn a solution?

Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
yep it is a problem with adding a column programatically.
I suspect it is to do with the fact that the grid is databound?
I'll let you know if I find a solution.


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top