Data entry in VB6Flexgrid1 developed by Mostafa Kaisoun
-
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.
-
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.
Have you tried asking Mostafa Kaisoun?
========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================
-
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.
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
-
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
Thanks i will try...