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
L

lnkgoeng

@lnkgoeng
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Adding rows to DataGridView programmatically
    L lnkgoeng

    Answer to problem 1 ------------------- 1. Add a datagridview to your form. 2. Dont add any column to it add a quote to retrieve data from the database 1. connectionstring e.g string conStr="Add the relevent connection to the database" 2. a function to retrieve the data. Create a class called it DataAccess

    using system.data;
    using system.data.oleddb;
    
    public class DataAccess
    {
      public void Show(string sql, string con, datagridview dt)
      {
        //add logic to retieve record from database     
      }
    }
    

    Then you can call this class to pupulate any datagridview with any number of rows or columns without any modifications. If you want a complete quote let me know (lnkgoeng@webmail.co.za)

    C# help question database

  • How to pass multiple values of checked rows in grid to databse?
    L lnkgoeng

    I sugest you have a column( called user id) hidden on the data gridview. When you check 4 boxes out of ten then you can use something like. dim id as integer() for i as integer = 0 to dgv.rowcount-1 if dgv.rows(i).cols(0).value = true' this is your checked column id = cint(dgv.rows(i).cols("userid).value) end if next I wrote this code in the reply window you may have to change some few things. id should be public to your project. Once you have populated user id's in the array then In your new form load you can use something like for i as integer = 0 to id.getupperbound(0) sql = "SELECT * FROM table where field = " & id(i) 'decide what you can do here next

    C# database question css sql-server sysadmin

  • First programming language for high school students?
    L lnkgoeng

    I don't know if people understand what technology is all about:mad:. Surely assembler, C or any other low level language is not the way to understand the computer - is just that people often refuse the change and get stuck deep inside the computer chips. I can see a lot of purist :suss: trying to lure a 15 years old kid into joining their outdated and self proclaimed groups:mad:. To teach a kid any language developed in the 80's is like denying him an ipod and give him a cd player. Let the kid have fun :) with programming he still have homeworks to do. Give him the simplest of any language. i will suggest anything that has nothing to do with low level maching code:mad:. Almost all new languages addresses the concepts of datatypes, functions and objects :-D . Thats all he need to know in order to be able to tackle pointers, binary, octal & hexadecimal numbers later in life. Don't impose things on this kid:mad:. Only a teacher can device a simpler way of explaining something as huge as computer programming.

    The Lounge c++ question
  • Login

  • Don't have an account? Register

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