I have assigned a datasource in to a DataGridView control. And, now i want to search a part of string or word in the DataGridView., and locate that row.

Please help me to provide the idea....
Thanks in advance....

hey Balaji,

Try this
use dataview to filter your table
and assign this dataview to your datagridview control.


DataView dv new DataView(ds.Tables[0],"studentid=2343","studentname",DataViewRowState.None);

reply me if you have any concerns.

Thanks,
Chaitanya.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.