How to make more cells in one table by DataGridView

Hello,
I have a question, Firstly I'm using VB
How can I make invoice by datagridview I'm trying to type customer information in the Textbox and Inventory Items in datagridview but the problem is datagrid give me one cell and I can type one inventory item only,  I want to put a lot of items for
one customer. And I bind the datagridview to access db table.
For more explain , How can I make Invoice and use datagridview for put items into it and save to access database table?
For example " create invoice in Quick books " something like that Every customer have a gridview and it's have item he taken it.

The problem with the datagridview is that it can only show one table.
For more tables 3th party datagrid's are better. 
Although you can start with using the old datagrid. Despite what is written on MSDN is it a complete different control then the datagridview. You can add in to your toolbox by right clicking on it and then add it.
The datasource of a DataGrid can be a complete dataset which is showed with all its relations.
Success
Cor

Similar Messages

  • How to make more than one partition on Airport Time Capsule?

    how to make more than one partition on Airport Time Capsule?

    Only for the very brave......
    Open up the Time Capsule (voids the warranty)
    Pull the hard drive
    Place the hard drive in a separate enclosure
    Connect the enclosure directly to your Mac
    Use Disk Utility to partition the hard drive
    Reinstall the hard drive back in the Time Capsule
    For the rest of us.....
    The next best thing might be to set up one or more disk images on the Time Capsule, which will allow you reserve a given amount of space for each disk image.
    Open up Macintosh HD > Applications > Utilities > Disk Utility
    Click on the New Image tab
    Navigate to the Time Capsule
    Set up the disk image by naming it and specifying how much space you want to reserve

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • Anyone know how to make vertical text in a table in keynote?

    anyone know how to make vertical text in a table in keynote?

    Just to add a bit more about this question. I have seen in other related questions that this feature (vertical text) is not available in (apparently) the whole iWork09. someone even said that it should be asked to the developers, so they include this feature in iWork10. I find this issue a bit sad. This feature has been present in msOffice since a while, and at least for me, this is quite important for my work. It is also apparently not possible to have different page orientation in the same document, meaning portrait and landscape, so one can have wide tables in a whole page, for example. If this is true, it is again sad, and I just cannot understand why such a basic feature is not available in an already 09 version. I am using only the trial version of iWork, but already in the first day I have discovered that I actually cannot do what I was used to. Again sadly I (and many others I guess) will have to stick to Office until the mac software is fully developed.

  • How to make editing cell to show up caret and taking keyboard event

    Hello everyone:
    I have the following problem with table editing.
    1. using mouse clicking, the editing cell will have cursor and taking keyboard event.(no problem with it)
    2. just type in data, it will show up in the selected cell, but the editing cell do not have cursor visible and also do not fire the keyboard event.
    I have problem with this one. So how to make editing cell to have caret visible and taking keyboard event.
    Thank you very much!
    --tony                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    you should subclass JTable and overwrite two methods.
    1. protected boolean processKeyBinding(javax.swing.KeyStroke ks,
    java.awt.event.KeyEvent e,
    int condition,
    boolean pressed)
    to store the current keyboard event,
    2.public boolean editCellAt(int row,int column,java.util.EventObject e)
    to fix the problem with isCellEditable and curret position and direct the event into proper place.

  • How to make more albums in photo library?

    How to make more albums in photo library?

    If you do not have iOS 5, you have to use subfolders in your one photo syncing folder. You can have one level of folders in the syncing folder and each folder is an album.
    With iOS 5 you can create albums in the Photo app.

  • HOW TO MAKE THE CONTENT OF THE TABLE PRINT IN A TABLE CONTROL SCREEN?

    Can any one tell me how to make the content of the table control print in a table control screen!!?
    Please help!!
    I have to make the contents of a table in the table control screen print ? any idea
    Regards,
    Vj

    Please refer to Demo Program,
    DEMO_DYNPRO_TABCONT_LOOP
    Its very clear.
    Shreekant

  • One script to make multiple cells call one function or vice versa

    Please help.
    I need one script to make multiple cells reference one function or one cell reference multiple functions.
    Goal: On the enter event of cell c1, I want to make cells (this, Header.c1, Example.c1, rLabel) highlighted, and this would be for every other cell that is entered into, their corresponding column header and row header will be highlighted.
    I've tried combining cells: eg
    colourControls.hdfieldLoseFocus(this, HeaderRow.c1, Example.c1, rLabel);
    and I've also tried combining some scripts in the function:
    fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
      HeaderRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
      ExampleRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
    But they dont work. See the link to my form.
    http://www.winstonanddavid.com/example.com
    I tried testing the function with the cell 'c1' but it doesnt work.
    Also, I want to get rid of the multiple lines of script in every other cell.
    How can I do this?

    I played around with the ExtendScript Toolkit and cutted and pasted the previous script from here until I managed to get a script that actually works like I was thinking. I then added a code from the CS4 Reference Manual to move Layer1 to the top (just to see if it worked).
    I have no idea yet if the the code includes something that does not belong, but at least I get no errors. The current code is like this now:
    //Apply to myDoc the active document
    var layerName = LayerOrderType;
    var myDoc = app.activeDocument;
    //define first character and how many layers do you need
    var layerName
    var numberOfLayers=0;
    //Create the layers
    for(var i=0; i<=numberOfLayers; i++)
    { var layerName = "Background";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = "Picture";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = "Text";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = "Guides";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    // Moves the bottom layer to become the topmost layer
    if (documents.length > 0) {
    countOfLayers = activeDocument.layers.length;
    if (countOfLayers > 1) {
    bottomLayer = activeDocument.layers[countOfLayers-1];
    bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
    else {
    alert("The active document only has only 1 layer")

  • How to make several pushbuttons in one line (on screen)??

    How to make several pushbuttons in one line (on screen)??
    thanks in advance!!!!

    Hi,
    USE
    SELECTION-SCREEN BEGIN OF BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    define all buttons between this block.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK.
    selection-screen
    Cheers
    VJ

  • How to make data flow from one application to other in BPEL.

    Hi All,
    I am designing work-flow of my application through BPEL(JDeveloper), I am making different BPEL projects for different functions, like sales manager got the order from sales person and sales manager either approve it or reject it, if he approve it it goes to Production manager and he ships the goods, now I want to keep sales person, sales manger,production manager in seperate BPEL files and want to get the output of sales person to sales manager and sales manager to production manager please help me in dong this.
    I was trying to make partner link in Sales manager of sales person and getting the input from there. I dont know this is right even or not, if it is right I dont know how to make data flow from one application to other.
    Experience people please guide.
    Sales Person -----> Sales Manager ----> Production Manager
    Thanks
    Yatan

    Yes you can do this.
    If you each integration point to be in different process, you have to create three BPEL process.
    1. Create a Async BPEL process 'A' which will be initiated when sales person creates the order.
    2. From BPEL process 'A' call a ASync BPEL process 'B' which has the approval flow. Depending on the input from process 'A' the sales manager will review the order in workflow and approve or reject and send the result back to process 'A'.
    3. Based on the result from workflow, invoke the Sync BPEL process 'C', where you can implement the shipping logic.
    -Ramana.

  • How to scan more pages into one PDF file using hP inkjet 2515

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

    Dear friend 
    How to scan more pages into one PDF file using hP inkjet 2515 

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • How to make Jtable cell empty onClick?

    Hi All,
    I have one requirement where I need to make the Jtable cell value empty on click or tab event. So, User does not have to do back space and delete whole string to edit that cell.
    Any idea?
    Thanks in advance.

    Hi camickr,
    Thanks for that reply. It did not work for me but Here is the thing.
    My requirement was : Client does not want to do back space in order do edit cell value when that cell clicked.
    I tried find the solution that, i can make that cell area as selected when it is clicked. my problem is solved. So, I tried to use Table select all editor.
    But here is what i found ......
    If I want that cell area selected, I need to do one more click(3 clicks at the same time) to select the value of that cell & I can put my new value without doing back space(stupid client requirement)
    Thanks for your help

  • How to give more relevance to one of the column in multicolumn datastore

    Hi Gurus,
    While using multicolumn datastore needed to give more importance to one of the column than the other one. How can we achieve the same ?
    SQL> create table test_sh4 (text1 clob,text2 clob);
    Table created.
    SQL> alter table test_sh4 add (text3 clob);
    Table altered.
    SQL> begin
    2 ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
    3 ctx_ddl.set_attribute
    4 ('nd_mcd',
    5 'columns',
    6 'replace (text1, '' '', '''') nd, text1 text1,replace (text1, '' '', '''') nd, text1 text1');
    7 ctx_ddl.set_attribute ('nd_mcd', 'delimiter', 'newline');
    8 ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
    9 ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
    10 end;
    11 /
    PL/SQL procedure successfully completed.
    SQL> create index IX_test_sh4 on test_sh4 (text3)
    indextype is ctxsys.context
    parameters
    ('datastore nd_mcd
    lexer test_lex1')
    / 2 3 4 5 6
    Index created.Here while querying how can I give more relevance to text1 column than text2 column ?

    Every time that you post code, whatever you are using eliminates all formatting and changes any multiple spaces to single spaces, so it makes it hard to tell what your code really is. Within the function, you need to remove the special characters and double spaces before you use the string for anything else. In the first part of your output string, you were only putting a % in front of the first word and after the last word. I fixed it so that it puts % before and after every word. I also added some code to return a score of 100 when an exact match is found in any column. You can use the function in a select from dual to see what it is returning. Please see the demonstration below. I will provide a copy of the function in a separate post that you can copy and paste. You may want to adjust the values that you multiply by. The values of 10 and 5 and .5 and .1 were just examples.
    SCOTT@orcl_11gR2> create table test_sh (text1 clob,text2 clob);
    Table created.
    SCOTT@orcl_11gR2> alter table test_sh add (text3 clob);
    Table altered.
    SCOTT@orcl_11gR2> insert all
      2  into test_sh (text1, text2, text3)
      3    values ('staple card', 'word2', 'word3')
      4  into test_sh (text1, text2, text3)
      5    values ('word4', 'staple card', 'word5')
      6  into test_sh (text1, text2, text3)
      7    values ('staplecard', 'word2', 'word3')
      8  into test_sh (text1, text2, text3)
      9    values ('word4', 'staplecard', 'word5')
    10  into test_sh (text1, text2, text3) values
    11    ('Weber Genesis S-310 Gas Grill',
    12       'Weber Genesis S-310 Gas Grill',
    13       'Weber Genesis S-310 Gas Grill')
    14  select * from dual
    15  /
    5 rows created.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference ('nd_mcd', 'multi_column_datastore');
      3    ctx_ddl.set_attribute
      4        ('nd_mcd',
      5         'columns',
      6         'replace (text1, '' '', '''') nd1,
      7          text1 text1,
      8          replace (text2, '' '', '''') nd2,
      9          text2 text2');
    10    ctx_ddl.create_preference ('test_lex1', 'basic_lexer');
    11    ctx_ddl.set_attribute ('test_lex1', 'whitespace', '/\|-_+');
    12    ctx_ddl.create_section_group ('test_sg', 'basic_section_group');
    13    ctx_ddl.add_field_section ('test_sg', 'text1', 'text1', true);
    14    ctx_ddl.add_field_section ('test_sg', 'nd1', 'nd1', true);
    15    ctx_ddl.add_field_section ('test_sg', 'text2', 'text2', true);
    16    ctx_ddl.add_field_section ('test_sg', 'nd2', 'nd2', true);
    17  end;
    18  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index IX_test_sh on test_sh (text3)
      2  indextype is ctxsys.context
      3  parameters
      4    ('datastore     nd_mcd
      5        lexer          test_lex1
      6        section group     test_sg')
      7  /
    Index created.
    SCOTT@orcl_11gR2> create or replace function text_format
      2    (p_string in varchar2)
      3    return         varchar2
      4  as
      5    v_string     varchar2 (32767);
      6    v_string_out varchar2 (32767);
      7    v_string_in1 varchar2 (32767);
      8    v_string_in2 varchar2 (32767);
      9    V_TOKEN         VARCHAR2 (32767);
    10  BEGIN
    11    -- remove special characters and double spaces before using in anything else:
    12    v_string := trim (translate (p_string, '/\|-_+&', '      '));
    13    v_string := replace (v_string, '''', '');
    14    while instr (v_string, '  ') > 0 loop
    15        v_string := replace (v_string, '  ', ' ');
    16    end loop;
    17    -- fixed 2 lines below:
    18    v_string_out := '(%' || replace (v_string, ' ', '% %') || '%) ' || ',';
    19    v_string_out := v_string_out || '(' || v_string || ')' || ',';
    20    -- first search string with spaces:
    21    v_string_in1 := v_string || ' ';
    22    -- second search string without spaces:
    23    v_string_in2 := replace (v_string_in1, ' ', '') || ' ';
    24    if v_string_in2 = v_string_in1 then
    25        v_string_in2 := null;
    26    end if;
    27    -- format search string one token at a time:
    28    while v_string_in1 is not null loop
    29        v_token := substr (v_string_in1, 1, instr (v_string_in1, ' ') - 1);
    30        v_string_out := v_string_out
    31        || '('
    32        || '?' || v_token || ' or '
    33        || '!' || v_token || ' or '
    34        || '$' || v_token
    35        || '),';
    36        v_string_in1 := substr (v_string_in1, instr (v_string_in1, ' ') + 1);
    37    end loop;
    38    while v_string_in2 is not null loop
    39        v_token := substr (v_string_in2, 1, instr (v_string_in2, ' ') - 1);
    40        v_string_out := v_string_out
    41        || '('
    42        || '%' || v_token || '% or '
    43        || '?' || v_token || ' or '
    44        || '!' || v_token || ' or '
    45        || '$' || v_token
    46        || '),';
    47        v_string_in2 := substr (v_string_in2, instr (v_string_in2, ' ') + 1);
    48    end loop;
    49    -- return formatted string (added score of 100 for exact match in any column:
    50    return
    51        '(' || v_string            || ') * 10 * 10 or
    52         (' || rtrim (v_string_out, ',') || ' within text1) * 10 or
    53         (' || rtrim (v_string_out, ',') || ' within nd1) * 5 or
    54         (' || rtrim (v_string_out, ',') || ' within text2) * .5 or
    55         (' || rtrim (v_string_out, ',') || ' within nd2) * .1';
    56  end text_format;
    57  /
    Function created.
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> select text_format ('STAPLE CARD') from dual
      2  /
    TEXT_FORMAT('STAPLECARD')
    (STAPLE CARD) * 10 * 10 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin text1) * 10 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin nd1) * 5 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin text2) * .5 or
         ((%STAPLE% %CARD%) ,(STAPLE CARD),(?STAPLE or !STAPLE or $STAPLE),(?CARD or
    !CARD or $CARD),(%STAPLECARD% or ?STAPLECARD or !STAPLECARD or $STAPLECARD) wit
    hin nd2) * .1
    1 row selected.
    SCOTT@orcl_11gR2> column text1 format a11
    SCOTT@orcl_11gR2> column text2 format a11
    SCOTT@orcl_11gR2> column text3 format a11
    SCOTT@orcl_11gR2> SELECT SCORE(1), t.* FROM test_sh t
      2  WHERE  CONTAINS (text3, text_format ('STAPLE CARD'), 1) > 0
      3  ORDER  BY 1 DESC
      4  /
      SCORE(1) TEXT1       TEXT2       TEXT3
           100 staple card word2       word3
           100 word4       staple card word5
           100 staplecard  word2       word3
            10 word4       staplecard  word5
    4 rows selected.

  • How to make ALV cell editable

    Hi ,
    I am using cl_gui_alv_grid .
    please let me know how to make a particular cell is editable
    eg:  cell corresponding to first row second column should be editabel but remaining all are non editable

    Hi,
    Loop at your internal table.
    Eg: i have total 5 fields in my internal table itab_zqmeinz. in that 3 fields are editable as below.
    declare DATA: lt_celltab TYPE lvc_t_styl.
    internal table with celltab as one of the column
    DATA: BEGIN OF itab_zqmeinz OCCURS 0. "TYPE STANDARD TABLE OF zqmseqkopf
            INCLUDE STRUCTURE zqmseqeinz.
    DATA: celltab TYPE lvc_t_styl.
    DATA: END OF itab_zqmeinz.
    LOOP AT itab_zqmeinz INTO wa_zqmeinz.
          l_index = sy-tabix.
          REFRESH lt_celltab.
          CLEAR wa_zqmeinz-celltab.
          PERFORM fill_celltab1 USING 'RW'
                                  CHANGING lt_celltab.
          INSERT LINES OF lt_celltab INTO TABLE wa_zqmeinz-celltab.
          MODIFY  itab_zqmeinz FROM wa_zqmeinz INDEX l_index.
        ENDLOOP.
    FORM fill_celltab1 USING value(p_mode)
                      CHANGING pt_celltab TYPE lvc_t_styl.
    Refresh pt_celltab.
      clear ls_celltab.
      IF p_mode EQ 'RW'.
        l_mode = cl_gui_alv_grid=>mc_style_enabled.    "to enable the required fields
      ELSE.                                "p_mode eq 'RO'
        l_mode = cl_gui_alv_grid=>mc_style_disabled.
      ENDIF.
      ls_celltab-fieldname = 'NEBENSEQUEN'.   " field1
      ls_celltab-style = l_mode.
      INSERT ls_celltab INTO TABLE pt_celltab.
      ls_celltab-fieldname = 'BEZEICHNUNG'.     "field2
      ls_celltab-style = l_mode.
      INSERT ls_celltab INTO TABLE pt_celltab.
      ls_celltab-fieldname = 'SORTIERUNG'.         "field3
      ls_celltab-style = l_mode.
      INSERT ls_celltab INTO TABLE pt_celltab.
    Endform.
    It works. I have done it in my program.
    Thanks,

Maybe you are looking for

  • Transferring itunes to new itunes via ethernet cable

    I want to transfer the music from my old itunes to the itunes on my new computer. As my old computer is pretty much knackered, the easiest way for me to do this i figure is via ethernet cable. can this be done, and if so, how do i go about doing it?

  • HT3275 The backup disk image "/Volumes/Data/JIP's Mac mini (2).sparsebundle" is already in use.

    I have a time capsule that I use for my apple computers.  My iMac has no problems but my Mac mini keeps getting this error for backups: The backup disk image "/Volumes/Data/JIP's Mac mini (2).sparsebundle" is already in use. What do I do?

  • Appfuse menu-config.xml error

    I have the next error when compile the appfuse project, javax.servlet.ServletException: Failure initializing struts-menu: Error parsing resource file: /WEB-INF/menu-config.xml nested exception is: The reference to entity "O" must end with the ';' del

  • Downloading adobe pro but get webget failed  what to do?

    When I go to download adobe pro i get "webget failed"  I have paid my money for this yet i can not download anything  What to do?

  • Threading issue in swing

    From my JDialog(modal ) I am making a RMI call to other machine, this RMI call takes lot of time, so what i need is a way to provide user the option of cancelling the task in between. i.e. after invoking the call, immediately another dialog should co