Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Entend DataGridView Filter from Column to Column

$
0
0

Hi everyone,

I'm trying to extend a dataGridView Filter from column Name to column Surname using a single texBox, I have managed to filter the Name column using the following code.

 

private void txtNameSearch_TextChanged(object sender, EventArgs e)
        {
            try
            {
                this.sTUNDENTINFOTableAdapter.FillByName(this.mDIDataSet1.STUNDENTINFO, txtNameSearch.Text);
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
        }
This is working fine. But I want to make it in such a way that when a user types a name followed by a space, the next letter or word he types should be filtered from the SURNAME column.

any help please.


My ASP


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>