B
Bruce D
Is there a way to programatically set the format of just one column in a
datagrid? I have a datagrid bined to a datasource. My dataview has 6
columns. And I want to format one column ('amount')...without have to mess
with all the other columns.
If I use DataGridTableStyle() and DataGridTextBoxColumn() (see following
code)...my datagrid only displays 1 column!
Dim dvFinders As New DataView(dtFinders)
DataGrid1.DataSource = dvFinders
' set properties
Dim x As New DataGridTableStyle
x.MappingName = "Finders"
Dim z As New DataGridTextBoxColumn
z.MappingName = "lastname"
z.Width = 150
x.GridColumnStyles.Add(z)
DataGrid1.TableStyles.Add(x)
This datagrid is making my project a lot harder than it should be!
Any help is appreciated!
-bruce duncan
datagrid? I have a datagrid bined to a datasource. My dataview has 6
columns. And I want to format one column ('amount')...without have to mess
with all the other columns.
If I use DataGridTableStyle() and DataGridTextBoxColumn() (see following
code)...my datagrid only displays 1 column!
Dim dvFinders As New DataView(dtFinders)
DataGrid1.DataSource = dvFinders
' set properties
Dim x As New DataGridTableStyle
x.MappingName = "Finders"
Dim z As New DataGridTextBoxColumn
z.MappingName = "lastname"
z.Width = 150
x.GridColumnStyles.Add(z)
DataGrid1.TableStyles.Add(x)
This datagrid is making my project a lot harder than it should be!
Any help is appreciated!
-bruce duncan