Insert a column in a datatable?

  • Thread starter Thread starter johnb41
  • Start date Start date
J

johnb41

You can ADD a column to a datatable easily: datatable.Columns.Add()

I would like to INSERT a column instead of adding it to the end. Is
this possible?

Thanks!
John
 
You can remove them at a specific index but I don't belive you can insert
them in at a specific index. Do you need this for UI Purposes or for logic
to run? If UI, then with grids and all you can specify mappings to make
them appear where you want them - otherwise you can always use the index to
get what you want.

HTH,

Bill
 

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

Back
Top