Hi everyone

I have created a GridView having Columns as Marks1,Marks2,Marks3 and total the values of marks are entered through SQL Query and The GridView is bind to dataset now i want to Display Total in the front end not through the Sql query Please help me in this Regard!!!

In the SQL query, you can do something like below in your query..

Select Mark1, Mark2, Mark3, Mark1 + Mark2 + Mark3 As Total
From yourtablename

Now in the front end side, only fire the above query, store the result into datatable and bind your data table to your gridview..

Hi everyone

I have created a GridView having Columns as Marks1,Marks2,Marks3 and total the values of marks are entered through SQL Query and The GridView is bind to dataset now i want to Display Total in the front end not through the Sql query Please help me in this Regard!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.