Datagrid MATH

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

Guest

In manuals theres a lot of useless info about the data
grid (connect to internet, agendas, bussnies info storge
etc..), I want to focus in xml (local data) and I would
like to perform MATH with the datagrid DATA , How can I
get the values from the datagrid do some math and
display the result in other table or other row.
 
Hi,

To use a datagrid, you need a datatable.
You can create in that datatable columns where some can be
datacolmn.expression
You can "datatable.compute" in those tables the columns vertical

Here some links about that, what I cannot read in your message if it is
about the webform datagrid or about the winforms datagrid.

These links however are for both

Expression
http://msdn.microsoft.com/library/d...fsystemdatadatacolumnclassexpressiontopic.asp

Compute
http://msdn.microsoft.com/library/d...frlrfsystemdatadatatableclasscomputetopic.asp

To get a datatable from an xml file is when the xml file is a dataset very
easy, otherwise you have to build the table using the xml nodes.

I hope this helps?

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

Back
Top