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. Visual Studio
  4. fill datagridview without going through a button, but by a textbox

fill datagridview without going through a button, but by a textbox

Scheduled Pinned Locked Moved Visual Studio
helpquestion
6 Posts 2 Posters 7 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.
  • M Offline
    M Offline
    Member_14192216
    wrote on last edited by
    #1

    Good evening everyone, I would like to know if you can fill a datagridview from a textbox? If possible be sure to help me pls

    L 1 Reply Last reply
    0
    • M Member_14192216

      Good evening everyone, I would like to know if you can fill a datagridview from a textbox? If possible be sure to help me pls

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Possibly, but it will depend on how you pass the data from the textbox to the grid. Please edit your question and add some proper details of what you are trying to achieve.

      M 1 Reply Last reply
      0
      • L Lost User

        Possibly, but it will depend on how you pass the data from the textbox to the grid. Please edit your question and add some proper details of what you are trying to achieve.

        M Offline
        M Offline
        Member_14192216
        wrote on last edited by
        #3

        Yes, I try to recover the value from my table, using the Textchanged event I managed to display the data but when I try to add the 2nd what was displayed disappears. Do you have any idea why this problem is happening?

        L 1 Reply Last reply
        0
        • M Member_14192216

          Yes, I try to recover the value from my table, using the Textchanged event I managed to display the data but when I try to add the 2nd what was displayed disappears. Do you have any idea why this problem is happening?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Member 14192216 wrote:

          Do you have any idea why this problem is happening?

          Most likely because you are doing something wrong. But since we cannot see your code it is difficult to guess how you are transferring the information to the DataGridView.

          M 1 Reply Last reply
          0
          • L Lost User

            Member 14192216 wrote:

            Do you have any idea why this problem is happening?

            Most likely because you are doing something wrong. But since we cannot see your code it is difficult to guess how you are transferring the information to the DataGridView.

            M Offline
            M Offline
            Member_14192216
            wrote on last edited by
            #5

            I post the code I used here?

            L 1 Reply Last reply
            0
            • M Member_14192216

              I post the code I used here?

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Well we cannot read it otherwise. Please edit your original question and add the code*, and any other details. *When posting code, please ensure you use the correct <pre></pre> tags around it so it is readable, like this:

              // some C# code
              public class Foo
              {
              Foo(){}
              void DoSomething()
              {
              Console.WriteLine("Doing something");
              }
              }

              Also in future please choose the appropriate language forum, rather than Visual Studio.

              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