0

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
1
Contributor
1
Reply
3
Views
6 Years
Discussion Span
Last Post by wewehalim
0

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

yhanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.