james james

james james

  • NA
  • 419
  • 28.7k

c# Search data grid column for top 10 repeaters

Nov 22 2017 11:27 AM
I am sure this has been asked before but I cant find an example.
 
I have a Winform and want to search 1 column for the Top 10 repeaters. Can you show some examples of doing such?
 
This is one of my search function
  1. private void btn_SearchPart_Click(object sender, EventArgs e)    
  2. {    
  3.     string Part = textBox3.Text.ToString();    
  4.     if (Part != "")    
  5.     {    
  6.          string queryString = "SELECT SheetID, Today, Part, Type FROM LC,movietype WHERE movietype.typeID = ILC.typeID AND LC.Part LIKE '" + Part + "%'";    
  7.           loadDataGrid(queryString);    
  8.           textBox3.Clear();    
  9.     }    
  10. }

Answers (3)