CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Posts
    113

    Unhappy Sqlce data reader..

    hi,

    I used select statement to pick the data from table.
    I don't how to display it in text box.

    I used the following code.

    cmd.CommandText = "SELECT grade FROM Marks WHERE ID = 111"
    cmd.ExecuteReader()

    I need to display grade in textbox. how to do that? (hope it must be simple..)
    Can anyone give details abt datareader?

    Thank You

  2. #2
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    Re: Sqlce data reader..

    take a look at datareader since you used cmd.executereader()
    Nicolas Bohemier

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured