user columns in a datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid that is linked to my database and gives me 3 columns worth
of data. What i want to do now is load in another 2 columns of data that i
create myself in my code that does not come from the database. Is this
possible and if so how?
 
Can you show how you are loading the datasource for the datagrid now? It
would help to tailor the response since there are many ways to skin this
cat.

If you are binding a dataset fill from a dataadapter just add columns to the
dataset.

DataSet1.Tables(0).Columns.Add("MyTable")

Hope this help. Post some of your code if you need more help.
Chris
 
I am binding a dataset from a dataadapter.
That worked for adding the column. How do i add the data into that column
in each row?
 

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