Computed value in a Gridview

G

Guest

One the columns in my gridview needs to be computed.
I am not able to get my computed value to stick.
DataTable orders;
getSqlData(orders);
for (i = 0; i < orders.Rows.Count; i++)
{
orders.Rows[8] = i * 8;
}
GridView1.DataSource = orders;
GridView1.DataBind();
How can I get a gridview control to display my computation?
I am already using an ItemTemplate for some of my columns but an
ItemTemplate will not work at this time
 
C

Cor Ligthert [MVP]

Arne,

Are you sure that this code is reached and that there is not thrown an
uncatched error before that which results in ending the program but posting
back to your client.

Although I never used a gridview yet, as it acts the same as a datagrid form
version 2002/2003. Can you place a raw gridview on your page without any
further editing and use that to show. Than this column should be in my idea
the *9th* column going down as 8, 16, 24 etc.

Cor
 
C

Cor Ligthert [MVP]

Arne,

Can you try not to reformulate your messages.

Now I have answered a message new while it was already answered.

Just go on in the same thread. You see that you get than responses as well.

Thanks in advance

Cor
 

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

Top