Hi all
I have a DataGridView with 2 Columns an Order column (text) and a price Column (decimal)
The Datagrid contains all the orders and price for a certain customer.
I'm currently adding all the prices and adding a new row to the datatable containing the total.In this row on the orders column it has the word "Total" and the Price column the calculated total. It all seams too be working fine.
Since the order column is wide and left align when the word "Total" is added it is to far from the calculated total.
What I need help is how to make the last row of the orders column right align so the word total will be closer to the calculated total While maintaining the remaining rows Left align..

Thanks in advance.

Edited 2 Years Ago by VIPER5646

Thanks for your help.
here is the code that works.

Me.DataGridView1.Rows(Me.DataGridView1.Rows.Count - 1).Cells(0).Style.Alignment = DataGridViewContentAlignment.BottomRight
This question has already been answered. Start a new discussion instead.