Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem in searching with multiple textboxes over datagridview

Problem in searching with multiple textboxes over datagridview

Scheduled Pinned Locked Moved C#
helpdatabasealgorithms
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arun kumar Gautam
    wrote on last edited by
    #1

    I have a datagridview in windows form application m also have 4 textboxes now m wanna to perform search in dataase using textboxes and thn show the result data into datagridview so m trying select * from Medicine where (Medicine_Name is null or Medicine_Name like '%" + Medicine_Name.Text + "%') or (Medicine_Dosage is null or Medicine_Dosage like '%" + Med_Dosage.Text + "%') or (Medicine_Symptons is null or Medicine_Symptons like '%" + Med_Symtoms.Text + "%') and Med_SubCat=(select Med_SubCat from Medicine_subcatagory where Med_Sub='" + this.Text + "') tht query but i doesnt find a correct answer can anyone tells me solution of it m jst wanna tht whether i put some text in 1 and 2 textbox and thn whenever i click on search datagridview will show me the common data only plzzz help me in it

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups