Thanks for reply
5 Answers, 1 is accepted
Thank you for writing.
Please refer to the following article which explains how to achieve the desired functionality: http://www.telerik.com/help/winforms/gridview-populating-with-data-binding-to-sub-objects.html.
I hope that you find this information helpful.
the Telerik team
Hi, sorry for writting in a old post.
I write here because I coudn't open a new thread about my question and it is related to this topic and I didn't find this in the domuentation.
I am trying to bind a property of one class with the fieldName property.
I have this class:
I have no problem binding the data with the property Name like that:
But I'd like to bind a different value in each diferent column. I tried this:
Is there any way to do this?
Can you please clarify what you do mean by "But I'd like to bind a different value in each different column. I tried this:". Also, can you put a small example with couple test records and a mockup of what you expect to see in the grid.
I am looking forward to your reply.
I'd like to assign a property that has a parameter, in order to have a different value in each column, but using the same property.
My question is if it's possible to assign a property that needs a parameter, like timesName(i as Integer).
In my real problem I have a Class like that:
Is it possible to have to have a row that contains the title in the first column and (assuming that I always have 5 elemnts in my list), 5 columns with the Strings contained in my list.
I tried something like:
But it's not working.
In order to display the values in separate columns, you will have to have a separate public property for each of the columns. RadGridView uses the CurrencyManager.GetItemProperties method to read the object and the indexer is not returned as a in this case, hence the need for separate properties for the different columns. Here is a small example:
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.