Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Show data from the last 90 days
posted

I am using a webgrid in a usercontrol that shows our network status in descending order for the past several months. I would like it to show only the data from the last 90 days. Please help and many thanks! My .cs code is shown below:

public partial class UserControls_Network_StatusLog : Port.Base.PortUserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        e.Arguments.SortExpression = "Date Occurred DESC";
    }
}