I have a DataGridView with the columns added manually, for example:
DataGridViewLinkColumn col = new DataGridViewLinkColumn() { HeaderText = "", DataPropertyName = "PropValue", ReadOnly = true };
this.dataGridResults.Columns.Add(col);
The datasource is a stored procedure which returns a list with "PropValue" and "PropText" among others.
My problem is that this DataGridViewLinkColumn must show the text from "PropText" and have its value bound to "PropValue". However it seems that DataPropertyName is not that flexible, it only binds to one data type returned from the datsource.
If the problem explanation isn't clear please let me know.
Ideas?
Thank you in advance