I've tryed but I have the same problem.
is displayed as blank.
> Hi Alessandro,
>
> I suggest that you add a special row in the lookup table that is bound to
> the DataSource property of the DataGridViewComboBoxColumn. The special row
> has a dbnull value for the field which is set as the value member.
>
> For example, the lookup table has two columns named "ID" and "Name"
> respectively. The following code adds some rows including the special row
> into the lookup table.
>
> 'define a DataTable and add two columns into it
> Dim lookup As New DataTable
> Dim col As New DataColumn("ID", GetType(Integer))
> lookup.Columns.Add(col)
> col = New DataColumn("Name")
> lookup.Columns.Add(col)
>
> 'add some rows into the DataTable
> Dim row As DataRow = lookup.NewRow
> 'this is the special row added into the lookup table
> 'I don't set the value for the first column in the row because the
> default value of a DataColumn is DBNull
> row(1) = " "
> lookup.Rows.Add(row)
>
> row = lookup.NewRow
> row(0) = 1
> row(1) = "a"
> lookup.Rows.Add(row)
>
> row(0) = 2
> row(1) = "b"
> lookup.Rows.Add(row)
>
> Note that the value of the Name field of the special row mustn't equal to
> the NullValue property of the DataGridView cell. The default value of the
> NullValue property of a DataGridView cell is an empty string "".
> Otherwise,
> when the user selects the special item, the DataGridView will set the
> value
> of the current DataGridViewCell to null, but the underlying data source
> won't accept null as a valid value, so an error occurs at this time.
>
> Hope this helps.
> If you have any question, please feel free to let me know.
>
> Sincerely,
> Linda Liu
> Microsoft Online Community Support
>
> ==================================================
> Get notification to my posts through email? Please refer to
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
>
http://msdn.microsoft.com/subscriptions/support/default.aspx. > ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>