Results 1 to 2 of 2

Thread: Data Grid Display

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Answers
    2

    Data Grid Display

    AutoNumber Prfix:

    I have created a table in msaccess with autonumber column named EMPID. I set the EMPID format property like "EMP"000, so that the column will be displayed like EMP0001, EMP0002,..... go on.

    My problem is when i display the data in data grid, only 1, 2, 3 are displaying and not the entire EMPID.

    I am using C#, Visual Studio .NET 2003, Windows application. Can any one help me?


  2. #2
    Junior Member
    Join Date
    Dec 2007
    Answers
    18

    Re: Data Grid Display

    Code:
    private sub button_click(byval sender as system.object, byval e as system.eventargs) handles btncount.click 
    dim semp, str1, str2, str3, str4 as string 
    dim l, s1, s2, count as integer
     dim i as integer = 1 
    'semp = txtemp.text
     'str1 = "emp000"
     'str2 = "emp00"
     'str3 = "emp0" 
    'str4 = "emp"
     session("int") = session("int") + i
     if session("int") >= 0 and session("int") <= 9 then
     txtemp.text = "emp000" & session("int") 
    else if session("int") > 9 and session("int") <= 99 then
     'session("int") = session("int") + i
     txtemp.text = "emp00" & session("int") 
    else if session("int") > 99 and session("int") <= 999 then 
    'session("int") = session("int") + i 
    txtemp.text = "emp0" & session("int")
     else 
    txtemp.text = "emp" & session("int") 
    end if 
    end if 
    end if 
    end sub



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact