How to Calculate Two Columns in DataGridView
In my previous tutorial using DataGridView Control I explained on “How to Differentiate Two Cell Values in DataGridView Control”. This time I will teach you on how to calculate two columns in DataGridView Control.
This tutorial is very useful if you want to make a total of the two columns. For example a total of “Qty” and “Sales Price” Column.
Additionally, we will make a total of the “Amount” column.
Connect an OLEDB with MS Access 2007 Files
School Management System
PAGING/ PAGINATION IN VB.NET
PAGING/ PAGINATION IN C#.NET
Password Generator Application
SQL AND / OR Operator
The AND/OR can be used to make a complex or multiple condition for the WHERE clause while selecting, updating or deleting some data.
The AND works as follows
Condition 1 AND condition 2 AND……… condition N
We can use as many conditions as we want with the AND. This condition’s result will only come out to be true if all the conditions are specifies, just like the and truth table
SQL DISTINCT Clause
The SQL DISTINCT clause is also used in the SELECT statement, it is used to get the data and display the unique values, and the values will be shown no matter how many times they appear in the table.
DISTINCT Syntax
SELECT DISTINCT columnname FROM tablename
Users:
SQL ORDER BY Clause
The ORDER BY clause is used in the SQL SELECT statement to order the data in ascending or descending order, this may help us get a better look when analyzing data, the ORDER BY clause can sort numeric as well as alphabetical data in both ascending and descending order.
SQL ORDER BY Clause Syntax