Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

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

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 please.

Thanks.
Posted
Updated 26-Apr-11 6:45am
v4
Comments
HimanshuJoshi 26-Apr-11 12:09pm    
Edited to improve readability and remove ignore html attribute.

1 solution

hi,

based on what u want to select row? try with KeyPress Event
 
Share this answer
 
Comments
sher ali 26-Apr-11 12:31pm    
include some code to help me for keypress event
thanks

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