How I can search rows in a datatable with a searchstring?

后端 未结 5 1119
清酒与你
清酒与你 2020-12-30 02:35

I want to search rows in my DataTable.

I\'ve tried this:

 protected void imggastsuche_Click(object sender, EventArgs e) 
        {
              


        
5条回答
  •  温柔的废话
    2020-12-30 03:19

    If some one else needs return specifically a DataTable you can use the code below:

    DataTable dtResult= tb.Select("CREATOR LIKE '%"+searchstring+"%'").CopyToDataTable();
    

提交回复
热议问题