Cyber_Zeus
New member
- Joined
- Mar 23, 2006
- Messages
- 1
hi guys!
Using a DataReader, I populate a Datagrid with results from an SQL SELECT.
On the grid, I see null values as (null). Id want the grid to write them as an empy string. (i.e. "")
I tried this:
It gives an error at
<<Object reference not set to an instance of an object>>
I tried with New
But... <<New cannot be used on a class that is declared MustInherit>>
Any suggestions?
Using a DataReader, I populate a Datagrid with results from an SQL SELECT.
On the grid, I see null values as (null). Id want the grid to write them as an empy string. (i.e. "")
I tried this:
Code:
Dim table_style As New DataGridTableStyle
table_style.MappingName = "Rubrica"
table_style.ReadOnly = True
Dim column_style As DataGridColumnStyle
column_style.NullText = ""
table_style.GridColumnStyles.Add(column_style)
dgKharta.TableStyles.Add(table_style)
Code:
column_style.NullText = ""
I tried with New
Code:
Dim column_style As New DataGridColumnStyle
Any suggestions?