I am compiling a grid search list in an asp.net web form. I am using a web service to load a grid. Now, how can I increase the request date?
gvproposal.DataSource = webservice.EnquiryGetAllLcRequest();
gvproposal.DataBind();
here i'm just binding a web service now how can i increase the date ??
public IS_LC_REQUEST[] EnquiryGetAllLcRequest();
this is a web service method.
public class IS_LC_REQUEST : CModelBaseOfIS_LC_REQUEST
{
public IS_LC_REQUEST();
public string BENEFICIARY_ADDRESS { get; set; }
public string BENEFICIARY_NAME { get; set; }
public string BRANCH_ID { get; set; }
public string PORT_OF_SHIPMENT { get; set; }
public string REQUEST_DATE { get; set; }
public string REQUEST_ID { get; set; }
}
Updated:
var arrayOfObjects = IntBankProposal.EnquiryGetAllLcRequest();
var dt = DateTime.Now;
gvproposal.DataSource = arrayOfObjects.OrderBy(load => { if (DateTime.TryParse(load.REQUEST_DATE, out dt)) { return dt; } else { return DateTime.Now.AddYears(-100); } }).ToArray();
gvproposal.DataBind();
source
share