Hi dharmendr,
My gridview shows the content of a folder in my computer, and whenever the content of that folder is updated, the records in the gridview are also be updated.
Now, with the available records in gridview (also in folder "Data") I want to search within the gridview, and display only the matched records, not highlight or all records. Please help me.
Thanks
Here is the gridview binding code:
private void BindGrid()
{
string[] filePaths = Directory.GetFiles(@"D:\Data",
"*");
List<ListItem> files = new List<ListItem>();
foreach (string filePath in filePaths)
{
files.Add(new ListItem(Path.GetFileName(filePath), filePath));
}
gvFiles.DataSource = files;
gvFiles.DataBind();
}