0

How can I filter the Event viewer by databinding it in a gridview?

Daniel Neel
  • 1,197
  • 13
  • 28

2 Answers2

0

You can filter the event viewer by storing the data from the event view local in the datatable and then apply the filter the depending on your requirement, before binding to the grid view control.

hope that will help.

Asim Sajjad
  • 2,526
  • 10
  • 36
  • 73
0

You can loop throgh all entries and check whether each entry matches your condition. If yes, then add it to data table as a new row, and finally bind this datatable to your grid.

rmtheis
  • 5,992
  • 12
  • 61
  • 78