Hello everyone,
I am working on creating a column in a grid; that colum should be the later date out of two other date columns and then sort the grid by that new column.
here is what I have for the two columns:
I am just wondering how the third column will be build and if it should calculate the later date of the other two columns in the Grid DataItemBound.
Please let me know if any ideas.
Thank you in advance,
Shehab
I am working on creating a column in a grid; that colum should be the later date out of two other date columns and then sort the grid by that new column.
here is what I have for the two columns:
<radg:GridBoundColumn UniqueName="DateAdministered" SortExpression="DateAdministered" HeaderText="First Fill Date" DataField="DateAdministered" DataFormatString='{0: MM/dd/yyyy}'> |
<HeaderStyle Wrap="False" HorizontalAlign="left"/> |
<ItemStyle Width="140px" /> |
</radg:GridBoundColumn> |
<radg:GridBoundColumn UniqueName="RefillDate" SortExpression="RefillDate" HeaderText="Last Refill Date" DataField="RefillDate" DataFormatString='{0:MM/dd/yyyy}'> |
<HeaderStyle Wrap="False" HorizontalAlign="left"/> |
<ItemStyle Width="140px" /> |
</radg:GridBoundColumn> |
Please let me know if any ideas.
Thank you in advance,
Shehab