Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have window form having datagridview code is
clsTest objtest = new clsTest();
string cmdtext = "SELECT TestID, DepartmentName, TestGroupName, TestName, Charges, Active, ProcedureTime, HDW FROM vTest";
DatagridAllTestbindingSource = new BindingSource(objtest.Select(cmdtext), null);
TestdataGridView.DataSource = DatagridAllTestbindingSource;
clicking any cell of DepartmentName column.
now i want to focus on (selected row) that row in which "DepartmentName " column cell having starting characters 'p' when i press p on keyboard and when i press h on keyboard focus on that row in which column cell having starting characters 'ph' and so on.
can any one help me in code Plz i am new to C#
Posted

1 solution

look into currentrow MSDN Currentrow example

and then you would need to loop through the cells in that row
 
Share this answer
 

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