Click here to Skip to main content
15,887,862 members

Comments by Tinsae Teku (Top 9 by date)

Tinsae Teku 5-Feb-22 18:45pm View    
This is still searching from database. I don’t have any database. My storage folder is a folder in the visual studio. It is a collection of books uploaded within this system itself. So no database or table.
Tinsae Teku 5-Feb-22 18:05pm View    
Dear @Graeme_Grant you are right. But it is known that it is possible to search data from a grid view. My problem is doing that, but not from database. So do you think that is impossible?
Tinsae Teku 19-Jan-22 9:40am View    
If the textbox is empty, then how am I gonna write the code? The system keep searching for 'null'. But I need it to just search only the checked items (for example 'age' and 'sex') and doesn't search for the empty parts. But it searches for '12', 'male' and 'null'. Then since there is no 'null' value in the database columns value, it displays 'no result'. But I want it to search only '12' and 'male'.
Tinsae Teku 19-Jan-22 8:56am View    
For 4 attributes, we need the following combinations: id, age, sex, grade, id&age, id&grade, id&sex, sex&age, sex&grade, age&grade, id,sex&age, id,sex&grade, id,age&grade, age,sex&grade, id,sex,age&grade. Imagine that for 8 columns, that would be very tiresome.
Tinsae Teku 19-Jan-22 8:50am View    
If I use string.Join[^] to combine them, it works. The issue comes when the checkbox isn't clicked. I used a textbox to store the specific item on the checkbox and its value is 'null' by default. So if the checkbox isn't checked, it starts to search null value from the database and displays nothing.