Z
Zanna
Hi all,
I'm using the CompactFramework and I like to format some datagrid cell (the
DataGrid has a Datatable as datasource).
Someone told me to use the Binding class and its events Format and Parse.
Ok, but I have no idea about how to link a datatable cell with the Binding
class.
I.E.: I have this code:
Dim d As New DataTable
d.Columns.Add("num", GetType(Int32))
d.Rows.Add(New Object() {1})
d.Rows.Add(New Object() {3})
DataGrid1.DataSource = d
And I want the "num" column to be formatted as "000".
Any tips?
Thanks
I'm using the CompactFramework and I like to format some datagrid cell (the
DataGrid has a Datatable as datasource).
Someone told me to use the Binding class and its events Format and Parse.
Ok, but I have no idea about how to link a datatable cell with the Binding
class.
I.E.: I have this code:
Dim d As New DataTable
d.Columns.Add("num", GetType(Int32))
d.Rows.Add(New Object() {1})
d.Rows.Add(New Object() {3})
DataGrid1.DataSource = d
And I want the "num" column to be formatted as "000".
Any tips?
Thanks