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:
Expand|Select|Wrap|Line Numbers
- ((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:
Expand|Select|Wrap|Line Numbers
- ((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.