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

I am creating windows application, i have taken textbox for search the data from datagrid view, but its not working proper.

I want it like if i enter "A", it should disply all words which are starting from A

Plz help !!!


hi i have done it in a project about 2 yrs before,

loop through each row then column in gridview

search for columns (cells) for starting value in ur case "a"

if current cell or column contain or starts with "a" just make this row selected (you have to set multiselect = true in gridview) and continue from the loop;

it might work.
Share this answer
Write a Select Query,
mSQL= "Select * From TableName Where ColumnName LIKE 'A%'";

Get this Data in a DataTable.
At last set

Hope This Help
Share this answer
see this link you may get some idea

Search Engine – Windows Tool using C#[^]
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