Search in DataGridView
-
How can I search in a DataGridView ? I have a DataGridView that has eight column.(for example this datagrid shows some information about 5000 E_Books).One of these eight column is about "Subjetc" and it can made of tow or three subject that delimited with "#" from each other : Example = "Metaphysics # Epistemology". Now I want to search Epistemology in this datagrid so that I can see this record ( "Metaphysics # Epistemology" ) as an answer of my search How can I do it? Thanks in advance
Hello Friends
-
How can I search in a DataGridView ? I have a DataGridView that has eight column.(for example this datagrid shows some information about 5000 E_Books).One of these eight column is about "Subjetc" and it can made of tow or three subject that delimited with "#" from each other : Example = "Metaphysics # Epistemology". Now I want to search Epistemology in this datagrid so that I can see this record ( "Metaphysics # Epistemology" ) as an answer of my search How can I do it? Thanks in advance
Hello Friends
hi Laji59 See this and dont forget to vote http://www.codeproject.com/KB/cs/N-Tier22.aspx[^] Hope it helps
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
How can I search in a DataGridView ? I have a DataGridView that has eight column.(for example this datagrid shows some information about 5000 E_Books).One of these eight column is about "Subjetc" and it can made of tow or three subject that delimited with "#" from each other : Example = "Metaphysics # Epistemology". Now I want to search Epistemology in this datagrid so that I can see this record ( "Metaphysics # Epistemology" ) as an answer of my search How can I do it? Thanks in advance
Hello Friends
Hello, There are many ways to make search. Is your datagrid based on a Data Model? My Advice is to bind your search results on your data model objects. List for example. Dont try te retreive information from your datagridview (assume that it's only to display) you can make for example a SearchClass that look for key words:
class SerachEbooksClass { public static List GetEBooksByKeyWords (string [] keyWords, List ebookList) { //..do some search stuff } }
This method is quite heavy if you got a very huge list You can make an index for your ebooks e.g. keywork1=>ebook1,ebook2,ebook3 keywork2=>ebook2,ebook100,ebook50 ... keyworkn=>ebook4,ebook1,ebook66 try to consult this index when searching for ebooks ! * hope this helped you
-
hi Laji59 See this and dont forget to vote http://www.codeproject.com/KB/cs/N-Tier22.aspx[^] Hope it helps
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
-
Hello, There are many ways to make search. Is your datagrid based on a Data Model? My Advice is to bind your search results on your data model objects. List for example. Dont try te retreive information from your datagridview (assume that it's only to display) you can make for example a SearchClass that look for key words:
class SerachEbooksClass { public static List GetEBooksByKeyWords (string [] keyWords, List ebookList) { //..do some search stuff } }
This method is quite heavy if you got a very huge list You can make an index for your ebooks e.g. keywork1=>ebook1,ebook2,ebook3 keywork2=>ebook2,ebook100,ebook50 ... keyworkn=>ebook4,ebook1,ebook66 try to consult this index when searching for ebooks ! * hope this helped you
-
How can I search in a DataGridView ? I have a DataGridView that has eight column.(for example this datagrid shows some information about 5000 E_Books).One of these eight column is about "Subjetc" and it can made of tow or three subject that delimited with "#" from each other : Example = "Metaphysics # Epistemology". Now I want to search Epistemology in this datagrid so that I can see this record ( "Metaphysics # Epistemology" ) as an answer of my search How can I do it? Thanks in advance
Hello Friends
Hi, Do it in sql and trigger it in c#, by way for me. :laugh: