I have two questions:
1 - Can I use sorting with ObjectDataSource?
2 - Can I use ObjectDataSource and ig:BoundDataField referencing a field from a related table in DataFieldName?
Please help me, I am not figuring out how to do this!
Thanks in advance!!
Edson
Hello Edson,
ObjectDataSource is not supported for automatic sorting. DataView, DataTable and DataSet are.
For the second part I don't see any issue with defining a BoundDataField for the grid, without having auto generated columns.
Is that what you are asking?
Boris, thank you for the quick response!!
About the second issue: I have two tables related by a foreign key, like Cities and Countries. The code have two classes mapped with the same name, I am using an ObjectDataSource and the TypeName points to Cities, but I need to bind the CountryName field from the Country table and display it. If I use ListView standard control from Visual Studio I have all the classes related to Cities available using the local variable automatic created "Item" or BindItem.
Please, take a look at the two samples attached, one with WebDataGrid and the other with ListView so you can see what I need and if it's possible with WebDataGrid. I want to replace list view with WebDataGrid.
Last question: Does WebDatGrid supports ModelBinding?
Thanks
Edson,
Can you send me a website or web project as I can't really work with .txt files and I am not entirely sure what your exact requirement is with this data source.
WebDataGrid requires Array, AccessDataSource, Data sets, views tables, Binding List, Collection, Enumerable, List, Queryable, LinQ, SQL or Object Data source.
Are you going to use our ASP.NET controls with MVC? What is your final goal?