Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MSDataGridLib.DataGrid
#7
i try to use DataFormat in the datagrid, because some columns show prices.

da4.Columns.Item(1).DataFormat
qm says 'expecting IDataFormatDisp'. :?:

in my vb6 test project its:

Code:
Copy      Help
BeginProperty Column01
         DataField       =   "EK"
         Caption         =   "EK"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
            Type            =   1
            Format          =   """€"" #.##0,00"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1031
            SubFormatType   =   2
         EndProperty
      EndProperty


2. regarding datasource
i found this thread ->Using DataGrid Without DataSet (unbound)

Quote:A DataGrid's DataSource will accept any object which implements
IEnumerable (such as an Array or ArrayList), so a simple array of your
objects would be the simplest. Map columns to the properties you want
displayed.

what is the DataSet the poster in posting #3 is writing about.

thanks a lot (like ever)
.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)