# [Visual C#] ComboBox in DataGridViews

## Recommended Posts

vegi    100
Hi. Following Problem: I want to display data in a datagridview. I need 5 Columns. 4 with a Textbox one with a combobox. I have an array of objects. Each Object should be represented in a row(first column = id). But every object has an array of other objects within. These Objects have members which should be displayed in 3 of the 5 columns. The correct object should be selected with the combobox. Or in other words:
Point
{
int id,X,Y,Z;
}
Polyline
{
Point[] points;
};
Polyline[] lines;


Columns: id(of the line) | point(combobox to choose the pointnumber) | X | Y | Z Is it possible or should i choose an other(easyer) way to present my data ?