Hello to all. A question. DataGridView has column type. For example, there is such a type of column as DataGridViewComboBoxColumn. This column has a binding to the Binding Source data source. That is what I need. But, I do not need a ComboBox. I would prefer TextBox.

In short, I need a DataGridViewTextBoxColumn with the same data source binding properties as the DataGridViewComboBoxColumn.

Do not tell me how to implement this?

  • one
    The ComboBox column has a built-in list of strings that is bound to an additional data source via the Binding Source. The TechBox type column has no additional data and its contents are automatically linked to the current record. That is, you want the impossible. Refine your task. - Alexander Muksimov
  • What does the impossible mean? Nothing is impossible! At least in C ++ for sure. But I need to write in C #. This language is limited to something chtoli? - Bretbas
  • "... Nothing is impossible! At least in C ++ ..." - it is not possible to disagree with this, however, before you need to sculpt something, you need to set a task. I assume (without being the Holy Ghost) that you wish the grid cell to expand into a list. DataGridViewTextBox cannot. For this, other means are used. - Alexander Muksimov
  • No, I don't want the cell to expand to the list. There is a DataGridViewComboBoxColumn for this, and it just has table binding properties! But I need the same binding properties as the DataGridViewComboBoxColumn, but the view should be similar to the DataGridViewTextBoxColumn, since one cell has 1 row from the table - Bretbas
  • Roughly speaking, if I did this in C ++, then I would inherit a new class from DataGridViewTextBoxColumn and add binding properties to the data source, like in DataGridViewComboBoxColumn. But because of the narrow knowledge in C #, I am turning here :) - Bretbas

0