elainec351
Member
- Joined
- Feb 28, 2008
- Messages
- 12
- Programming Experience
- Beginner
First off let me thank you all for this forum. It has provided answers to so many of my questions. I am very new to VB.net programming and am struggling with some of the simplest issues.
Next, can anyone help me create a query that sums the refundAmount data from a dataset that is derived by pulling data from multiple XML files. The datasource of the data is not from a database but individual XML files that I am reading in. Due to this, I have been unable to create a Query that I can use to sum the data in the refund table(refundAmount column). At least I haven't found a way, yet.
I have created an dataset and datatable in the DataSource Design, though I don't know that this was necessary as I am creating it in my code. The dataset has the same name as the in the DataSource Design and the datatable is also the same. I did this mainly to specify which columns I wanted in the datagrid. Without this I was getting every field of data in the XML files on the DataGridView. I am sure this is not OK, but it is seemingly NOT hurting anything at the moment.
I have tried adding a column in the datagridview that uses an expression to sum the Amount column but is stays empty even though there is data in the Amount column.
I have tried using the datatable.Compute for both the datagridview and the dataset.datatable. This also left the Total Amount empty.
Am I missing the boat or is there a way to get what I need?
Thanks in advance for any help on this.
Elaine
Next, can anyone help me create a query that sums the refundAmount data from a dataset that is derived by pulling data from multiple XML files. The datasource of the data is not from a database but individual XML files that I am reading in. Due to this, I have been unable to create a Query that I can use to sum the data in the refund table(refundAmount column). At least I haven't found a way, yet.
I have created an dataset and datatable in the DataSource Design, though I don't know that this was necessary as I am creating it in my code. The dataset has the same name as the in the DataSource Design and the datatable is also the same. I did this mainly to specify which columns I wanted in the datagrid. Without this I was getting every field of data in the XML files on the DataGridView. I am sure this is not OK, but it is seemingly NOT hurting anything at the moment.
I have tried adding a column in the datagridview that uses an expression to sum the Amount column but is stays empty even though there is data in the Amount column.
I have tried using the datatable.Compute for both the datagridview and the dataset.datatable. This also left the Total Amount empty.
Am I missing the boat or is there a way to get what I need?
Thanks in advance for any help on this.
Elaine