DataSet

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vinay

    #1

    DataSet

    Hi,

    I am getting a DataSet with 1 table.

    In one of the columns X, i get all numeric values.

    I want to get the SUM of all the rows of Column X.

    Is there a direct approach to get the SUM or do i have do
    it regular way by looping thru the records??

    Thanks
    vinay
  • James J. Foster

    #2
    Re: DataSet

    Try the Compute method on the DataTable.



    --
    James J. Foster, DotNetCoders



    "vinay" <vinay.pathi@co rpusinc.com> wrote in message
    news:024801c34f b1$4c07c850$a30 1280a@phx.gbl.. .[color=blue]
    > Hi,
    >
    > I am getting a DataSet with 1 table.
    >
    > In one of the columns X, i get all numeric values.
    >
    > I want to get the SUM of all the rows of Column X.
    >
    > Is there a direct approach to get the SUM or do i have do
    > it regular way by looping thru the records??
    >
    > Thanks
    > vinay[/color]


    Comment

    Working...