[CLOSED] Datarepeater takes focus after datasource change

Closed
0
0

I am trying to apply a search on a datarepeater list but when i change the datasource my textbox looses focus and even if
i set the focus by code after the search or set the focus after the changedatasource event the textbox still looses the foucs.

This is my code:
if (txtSearch.Text.Length > 0)
{
var part = parts.Where(x => x.SearchPart.Contains(txtSearch.Text));
drCatalog.DataSource = part.ToList();
}
else
{
drCatalog.DataSource = parts;
}

  • You must to post comments
0
0

Any thoughts?

  • You must to post comments
0
0

See how text looses focus when datasource is changed

Attachment
  • You must to post comments
Showing 2 results