I am using RadGrid in a user control within an asp page to display a collection of records (15 columns) depending on the type of request needed (3 different types).
In Page_Load(), I assign the type of collection for binding the grid and immediately after, define the columns that it should have as GridBoundColumns (i.e. boundColumn.DataField = "Column 1" ; boundColumn.HeaderText = "Header 1" ; RadGrid1.MasterTableView.Columns.Add(boundColumn) ...)
In the RadGrid1_ItemDataBound(...), I do some processing on some columns (i.e. format date to short string) and add some controls (i.e. textbox) to certain columns (for capturing notes next to what's displayed).
When I post back and refresh the page, it's all fine.
When I filter by a column or click to go to the next page, all columns show the string representation of the grid column data class (i.e. Wireless_Equipment_Support_System.Telecommunication.TypeOneDataObject)
Any suggestions why this is happening?
In Page_Load(), I assign the type of collection for binding the grid and immediately after, define the columns that it should have as GridBoundColumns (i.e. boundColumn.DataField = "Column 1" ; boundColumn.HeaderText = "Header 1" ; RadGrid1.MasterTableView.Columns.Add(boundColumn) ...)
In the RadGrid1_ItemDataBound(...), I do some processing on some columns (i.e. format date to short string) and add some controls (i.e. textbox) to certain columns (for capturing notes next to what's displayed).
When I post back and refresh the page, it's all fine.
When I filter by a column or click to go to the next page, all columns show the string representation of the grid column data class (i.e. Wireless_Equipment_Support_System.Telecommunication.TypeOneDataObject)
Any suggestions why this is happening?