How to Implement Insert Row feature by Programming without the CommandBar

Posted by: summa on 15 September 2017, 10:38 am EST

  • Posted 15 September 2017, 10:38 am EST

    Hi …

    I have to implement a

    spread sheet which has 3 column, such as say Description (Title) column,

    Initial Value column and Annual Value column this is a sheet where we can enter

    budget details, in that I have requirement of implementing the Insert row feature

    when user clicks on a particular button on the spread sheet (which

    CellType PushButton) and therefore I have set the command toolbar to hide

    state.







    Let say I have 3 Titles on the sheet (Estimated Expenses, Internal Funding and

    External Funding) for each of these title there are pre loaded details, e.g. under

    estimated expenditure there are few items with respective values and same for

    other headings as well.







    Other than the Pre loaded Items User can add new items for above titles, by

    click of button,  assume that there is separate column next to the Annual

    Value column  which has place a push buttons for each heading .







    I know that using command bar Insert row button row insertion feature is added

    with this control. But I want it to be implemented when user clicks on the push

    button.







    Questions -

    1. How to Insert row by code in the Button Command event?



    2. Is there anything to with IsheetDataModel in otder to implement this features, beacause as i mention above I have hide the commandBar ,So there is no update button to update when user adds a row in between.



    Please Help, highly appriciate all comments,…

    Sumudu

  • Posted 15 September 2017, 10:38 am EST

    Sumudu,

    In the ButtonCommand event, you can call the AddRows method to add/insert rows in the Spread control client side.

  • Posted 20 April 2022, 6:25 am EST

    Do you want to work part-time, start a programming blog, or complete some practical assignments? As a Hawk Research writer, you’ll have access to a variety of Microsoft Access programming jobs that our clients have open. Writing about programming is a well-paid employment, given the paucity of such practical expertise. Joining our team https://onlinefreelancejobs.net/programming-job/ allows you to augment your income while also engaging in exciting research projects.

  • Posted 29 December 2022, 3:24 am EST

    To insert a single row: Right-click the whole row above which you want to insert the new row, and then select Insert Rows. To insert multiple rows: Select the same number of rows above which you want to add new ones. Right-click the selection, and then select Insert Rows. Donkey Kong

  • Posted 19 July 2023, 7:58 am EST

    cool

  • Posted 9 October 2023, 5:08 am EST

    Candy Crush also incorporates various power-ups and boosters to help players overcome difficult levels. These power-ups can be earned or purchased, and they can provide advantages such as clearing entire rows or columns, removing specific candies, or creating explosions to clear larger areas.

  • Posted 20 June 2024, 2:49 am EST

    Your post is so interesting. Thanks for sharing! brick & stone masonry contractors newton ma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels