Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 691325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:31:50+00:00 2026-05-14T02:31:50+00:00

I am using a website which contains a gridview for view details of Product

  • 0

I am using a website which contains a gridview for view details of Product details… It contains columns like name,area,phnoe no,quantity,price,total…. now I want to calculate total value for that I have to multiply the columns quantity and Price and also put that answer to total column in grid… How shall I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:31:51+00:00Added an answer on May 14, 2026 at 2:31 am

    There are three(may be more) ways to accomplish this.
    First is query database and show result on grid

    To do this : Query like
    select name,area,phone,quantity,price,quantity * price as Total from YOUR_TABLE
    Then bind it into your datagrid

    Second is before binding your source which is here datatable into the grid,loop for this table for your sum.

    To do this: You have datatable but not you have column named Total this time.
    Now you need to add a new column as Total into the datatable.

    DataColumn totalColumn = new DataColumn("Total");
    totalColumn.Expression = "Quantity * Price";
    totalColumn.DataType = //double,integer 
    dataTable.Columns.AddAt(totalColumn, 0);
    

    All we have done above is generating a computed column

    Third,use javascript for cells to assemble your specific values to sum,but this time you need to find your datagrid then your cells in which you should prefer using a javascript framework like jquery.I do not know any reference point for this,but First and second options will be much easier to do

    Best Regards
    Myra

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a website which I would like to behave responsively using CSS
I have a solution which contains the following: Website Project (using local IIS 7
I have a ASP.NET website which contains a Google Map. I am using the
I have a website under construction, using PHP MYSQL, which contains a news page
I have a website which using active directory authorization on a windows server in
Im using a jquery scroller for my photography website which i cannot get it
I have Drupal 6 website which is using FCK Editor as HTML editor. It
i am using form authentication for my website which is written in ASP.Net, but
I am developing a website which is extensively using jquery dom javascript ajax etc.
I'm currently developing a website which stores bookmarks in a MySQL database using PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.