Jump to content
Xtreme .Net Talk

Cyber_Zeus

Members
  • Posts

    1
  • Joined

  • Last visited

Cyber_Zeus's Achievements

Newbie

Newbie (1/14)

0

Reputation

  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). I'd want the grid to write them as an empy string. (i.e. "") I tried this: 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) It gives an error at column_style.NullText = "" <<Object reference not set to an instance of an object>> I tried with New Dim column_style As New DataGridColumnStyle But... <<'New' cannot be used on a class that is declared 'MustInherit'>> Any suggestions?
×
×
  • Create New...