G
Guest
Hi,
I have a gridview that I am displaying from an Eventlog. Is there any way to
sort this with the newest entries at the top rather than the way it is
delivered from the collection? I don't want to enable sorting to let the user
sort. Here is my code to bind:
System.Diagnostics.EventLog log = new
System.Diagnostics.EventLog("MyEventLog");
System.Diagnostics.EventLogEntryCollection entries = log.Entries;
BZPEventLog.DataSource = entries;
BZPEventLog.DataBind();
thanks in advance!
Bill
I have a gridview that I am displaying from an Eventlog. Is there any way to
sort this with the newest entries at the top rather than the way it is
delivered from the collection? I don't want to enable sorting to let the user
sort. Here is my code to bind:
System.Diagnostics.EventLog log = new
System.Diagnostics.EventLog("MyEventLog");
System.Diagnostics.EventLogEntryCollection entries = log.Entries;
BZPEventLog.DataSource = entries;
BZPEventLog.DataBind();
thanks in advance!
Bill