Aldio Kaminang

Aldio Kaminang

  • NA
  • 3
  • 4.6k

Cannot find column [name]

Oct 23 2020 5:12 PM
  1. private void textBox_Search_TextChanged(object sender, EventArgs e)           
  2. {               
  3.     DataTable dbdataset = new DataTable();                
  4.     try               
  5.     {                   
  6.         DataView DV = new DataView(dbdataset);                   
  7.         DV.RowFilter = string.Format("nama LIKE '%{0}%'",textBox_Search.Text);                   
  8.         metroGrid_SearchCS.DataSource = DV;               
  9.     }               
  10.     catch (Exception ex)               
  11.     {                   
  12.         MessageBox.Show(ex.Message);               
  13.     }           
  14. }  
This is my project, i didn't search customer name with textbox. And i got Cannot find column [name]
Anyone can help me.
Thank you
 
 

Answers (5)