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
  1. Home
  2. General Programming
  3. Visual Basic
  4. Data entry in VB6Flexgrid1 developed by Mostafa Kaisoun

Data entry in VB6Flexgrid1 developed by Mostafa Kaisoun

Scheduled Pinned Locked Moved Visual Basic
csscomhelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Preeti1979
    wrote on last edited by
    #1

    Hi, i have used VB6Flexgrid1 (activex control) developed by Mostafa Kaisoun in my project to enter data. Now my problem is, i want to restrict number of columns and rows (like rows=3 and columns=2) but when i enter the last record in cell(3,3), it adds new row to the grid which i donot want. so plz tell me how to restrict it to the desired rows and columns only.

    C D 2 Replies Last reply
    0
    • P Preeti1979

      Hi, i have used VB6Flexgrid1 (activex control) developed by Mostafa Kaisoun in my project to enter data. Now my problem is, i want to restrict number of columns and rows (like rows=3 and columns=2) but when i enter the last record in cell(3,3), it adds new row to the grid which i donot want. so plz tell me how to restrict it to the desired rows and columns only.

      C Offline
      C Offline
      Chris Quinn
      wrote on last edited by
      #2

      Have you tried asking Mostafa Kaisoun?

      ========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================

      1 Reply Last reply
      0
      • P Preeti1979

        Hi, i have used VB6Flexgrid1 (activex control) developed by Mostafa Kaisoun in my project to enter data. Now my problem is, i want to restrict number of columns and rows (like rows=3 and columns=2) but when i enter the last record in cell(3,3), it adds new row to the grid which i donot want. so plz tell me how to restrict it to the desired rows and columns only.

        D Offline
        D Offline
        den2k88
        wrote on last edited by
        #3

        More generally: I saw that the original MS Flexgrid control (which I assume is the parent of VB6FlexGrid1) has a event named RowColChange that, as the Change event is usually managed in VB, is triggered BEFORE the selection fo the new cell. I think you can trap that event, check if the new Row,Col is inside your range and if not manually set the new Row,Col (to the previously selected one, for example). I hope to have been of aid, Denis

        Geek code v 3.12 GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++* Weapons extension: ma- k++ F+2 X

        P 1 Reply Last reply
        0
        • D den2k88

          More generally: I saw that the original MS Flexgrid control (which I assume is the parent of VB6FlexGrid1) has a event named RowColChange that, as the Change event is usually managed in VB, is triggered BEFORE the selection fo the new cell. I think you can trap that event, check if the new Row,Col is inside your range and if not manually set the new Row,Col (to the previously selected one, for example). I hope to have been of aid, Denis

          Geek code v 3.12 GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++* Weapons extension: ma- k++ F+2 X

          P Offline
          P Offline
          Preeti1979
          wrote on last edited by
          #4

          Thanks i will try...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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