Q: Default columns appear at runtime

D

David Carr

Hi all,

I dropped the DataGrid control onto my ASPX page, and it automatically
appeared with the 3 default columns having headings of {Column0, Column1,
Column2}. I then added my own columns using the property builder, however
these 3 default columns still appeared in the Design view of the ASPX page
although they do not appear in the Property Builder (nor when looking
directly at the HTML). Lastly, they also do strange things to the data at
runtime when it is bound to a DataTable.

Any ideas on how to get rid of these default 3 columns?

Cheers,
David
 
D

David Carr

Posted here to help all, I solved the problem.

In the Property Builder and Columns set of options, uncheck the 'Create
columns automatically at run time' checkbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top