How to Format the DataGridview Column to Currency using VB.Net

0
233

This tutorial is all about How to Format the DataGridview Column to Currency using VB.Net. In this post i will teach you How to Format the DataGridview Column to Currency using VB.Net. So let’s get started:

As a continuation of this tutorial. We will use the Displaying Data Table Records in Datagridview using VB.Net

  • First, Design your Form like this one below.
    Add a Button.
  • After designing the form. Click the Button and add this following codes.
  1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  2. DataGridView1.Columns(3).DefaultCellStyle.Format = "c"
  3. DataGridView1.Refresh()
  4. End Sub
  • Then Click F5 to Run the Program.

Output:

If you have any comments or suggestions about on How to Format the DataGridview Column to Currency using VB.Net please feel free to contact our webpage.

Download Code Here

 

Readers might read also:

 

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here