Hi all,
I'm using C#. I have a DataGridView with a ComboBoxColumn. I'm filling the combo box Items collection programatically , because it is different for each row.
Each string in the Items list consists of two other strings, read from a table. I want to format the string, so that the list of items appears as if it has two columns.
When I try the folowing:
a strange symbol like a rectangle appears instead of the tab.
When I try to simply press tab whithin the "", like this:
the items does not appear in two columns.
What can I do?
I'm sorry if something is not clear, but English is not my first language.
I'm using C#. I have a DataGridView with a ComboBoxColumn. I'm filling the combo box Items collection programatically , because it is different for each row.
Each string in the Items list consists of two other strings, read from a table. I want to format the string, so that the list of items appears as if it has two columns.
When I try the folowing:
Code:
((DataGridViewComboBoxCell)this.dgvModules.Rows[i].Cells[0]).Items.Add(this.m_tableProducts.Rows[j]["Model"].ToString() + "\t" + this.m_tableProducts.Rows[j]["Name"].ToString());
When I try to simply press tab whithin the "", like this:
Code:
((DataGridViewComboBoxCell)this.dgvModules.Rows[i].Cells[0]).Items.Add(this.m_tableProducts.Rows[j]["Model"].ToString() + " " + this.m_tableProducts.Rows[j]["Name"].ToString());
What can I do?
I'm sorry if something is not clear, but English is not my first language.
Comment