We're using the grid to show our customers the status of a file. The three statuses are In Progress, Success, Rejected. We have a custom column inheriting GridViewDataColumn to display different types. This is done in CreateCellElement.
When the status is In Progress the custom column displays nothing.
When the status is Success the custom column displays an image of a green checkmark.
When the status is Rejected the custom column contains a button. The button tag contains a URL to the report with the reasons why the file was rejected.
All of the columns are sortable and filterable except the custom column, which is ok. The problem is when the data is sorted and there are rejected files, the button's tag value does not stay with its row. Example: there are 3 rejected files sorted ascendingly by file name; file1, file2, and file3. They each have a corresponding report at www.test.com/file1.pdf, www.test.com/file2.pdf, and www.test.com/file3.pdf
When the grid is sorted descendingly on the file name, file3 is the top row but the button tag is still the URL of file1.
How can the button URL sort with the file name?
When the status is In Progress the custom column displays nothing.
When the status is Success the custom column displays an image of a green checkmark.
When the status is Rejected the custom column contains a button. The button tag contains a URL to the report with the reasons why the file was rejected.
All of the columns are sortable and filterable except the custom column, which is ok. The problem is when the data is sorted and there are rejected files, the button's tag value does not stay with its row. Example: there are 3 rejected files sorted ascendingly by file name; file1, file2, and file3. They each have a corresponding report at www.test.com/file1.pdf, www.test.com/file2.pdf, and www.test.com/file3.pdf
When the grid is sorted descendingly on the file name, file3 is the top row but the button tag is still the URL of file1.
How can the button URL sort with the file name?