Hi i have this code to build datagridview column.
I will fill this coulmn with the data from another column (I have done it)
But now, I want it so that the table property READONLY: TRUE and the column TOTAL_PRICE to have $#.00 format. Can anyone help me?

Thanks

Public Class columnLoader

    Public Sub New(ByVal system As String, ByVal quantity As Integer, ByVal description As String, ByVal totalPrice As Double)
        _system = system
        _quantity = quantity
        _description = description
        _totalPrice = totalPrice
    End Sub

    Private _system As String
    Public Property SYSTEM() As String
        Get
            Return _system
        End Get
        Set(ByVal value As String)
            _system = value
        End Set
    End Property

    Private _quantity As Integer
    Public Property QTY() As Integer
        Get
            Return _quantity
        End Get
        Set(ByVal value As Integer)
            _quantity = value
        End Set
    End Property

    Private _description As String
    Public Property DESCRIPTION() As String
        Get
            Return _description
        End Get
        Set(ByVal value As String)
            _description = value
        End Set
    End Property

    Private _totalPrice As Double
    Public Property TOTAL_PRICE() As Double
        Get
            Return _totalPrice
        End Get
        Set(ByVal value As Double)
            _totalPrice = value
        End Set
    End Property

End Class

One more thing,
How to adjust the column size from this code?

yhanks

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.