Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using datagidview in my window application. My code is

Collapse

string cmdtext = "SELECT Parametername,parmeterID,TestID,Testname   FROM  TestParameter WHERE (TestID ="+cmbTest.SelectedValue.ToString() +")";
            clsTestParameter testparameter = new clsTestParameter();
            datasource = new BindingSource(testparameter.Select(cmdtext), null);
            testparameter.TestID =(int) cmbTest.SelectedValue;
            dataGridView1.DataSource = datasource;
            dataGridView1.Columns["ParameterID"].Visible = false;
            dataGridView1.Columns["TestID"].Visible = false;


datagridview is readonly and SelectionMode is FullRowSelect. Now I want that when I click datagridview and press any character that row should select in dgv, in which the current column cell value start from that charactor. In short, I want just like combobox AutoCompleteMode=SujjestAppend property for datagridview culomn. Any one help me with C# code example please

Thanks.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900