473,699 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to enter data into VSFlexGrid at runtime

123 New Member
Hi,

Can anyone tell me how to enter data into VSFlexGrid at runtime? Kindly send me coding of that.
Mar 29 '07 #1
11 4743
iburyak
1,017 Recognized Expert Top Contributor
http://www.tek-tips.com/viewthread.c...1232027&page=6
Mar 29 '07 #2
iburyak
1,017 Recognized Expert Top Contributor
The following code will fill the first 5 rows × 4 columns block of cells with numbers from 1 through 20.


[PHP]Private Sub VSFlexGrid1_Cli ck()
With Me.VSFlexGrid1
For i = 1 To 5
For j = 1 To 4
.Row = i
.Col = j
.Cell(flexcpTex t, i, j) = (i - 1) * 4 + j
Next j
Next i
End With
End Sub[/PHP]
Mar 29 '07 #3
pureenhanoi
175 New Member
Hi,

Can anyone tell me how to enter data into VSFlexGrid at runtime? Kindly send me coding of that.
I don't know which version of VSFlexGrid you have. But i usually use VSFlexGrid Pro 7.0.
To enter data into VSFlexGrid, you should set EditAble property to 1-flexEDKbd or 2-flexEDKbdMouse.
If that property = 2, you can click mouse on cell, and then enter data.
To enter data by code, you can use TextMatrix(row, col) method
example: VSFlexGrid1.Tex tMatrix(1,1) = "your data". Remember add at least one row and one col to enable enter data
Mar 29 '07 #4
Shailja
123 New Member
I don't know which version of VSFlexGrid you have. But i usually use VSFlexGrid Pro 7.0.
To enter data into VSFlexGrid, you should set EditAble property to 1-flexEDKbd or 2-flexEDKbdMouse.
If that property = 2, you can click mouse on cell, and then enter data.
To enter data by code, you can use TextMatrix(row, col) method
example: VSFlexGrid1.Tex tMatrix(1,1) = "your data". Remember add at least one row and one col to enable enter data

Thanks. Now I am able to enter data in VSFlexGrid. After entering data into Grid, I want to save entered data into table. How to do coding of that? Kindly send me coding
Mar 29 '07 #5
vijaydiwakar
579 Contributor
Thanks. Now I am able to enter data in VSFlexGrid. After entering data into Grid, I want to save entered data into table. How to do coding of that? Kindly send me coding
drive to loops one for row and another for col
adjust the qry
and execute it
Mar 29 '07 #6
pureenhanoi
175 New Member
Thanks. Now I am able to enter data in VSFlexGrid. After entering data into Grid, I want to save entered data into table. How to do coding of that? Kindly send me coding
what kind of table will you save your data.
Mar 29 '07 #7
vijaydiwakar
579 Contributor
Expand|Select|Wrap|Line Numbers
  1.  
  2. conn.begintrans
  3. with Flex
  4. for i=.fixedrows to .rows-1
  5. ssql="Insert into <tblname> (<filed1>,<Filed2>) values (
  6. for j=.fixedcols to .cols-1
  7. ssql=ssql & .textmatrix(i,j) & "" 
  8. if j<>.cols-1 then ssql=ssql & " , "  
  9. next
  10. ssql=ssql & " )"
  11. conn.execute ssql
  12. next
  13. end with
  14. conn.committrans
  15.  
like it
Try it
Good Luck
Mar 29 '07 #8
Killer42
8,435 Recognized Expert Expert
Just a note to let you know, I've changed the title of the thread to something more appropriate than "help me soon".

MODERATOR
Mar 29 '07 #9
vijaydiwakar
579 Contributor
've u tryed the code?
Mar 29 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3603
by: Roberto Herrera | last post by:
Hello all, I am also having problems with the vsflexGrid. I can't make work the comboliste that I loaded into the vsFlexGrid Apparently the combolist is loaded, but when I make a click in the vsFlexGrid to chose un item I got an error Another things I can't put pics in the vsFlexGrid. Can we still do that in vb.net? Does anyone knows how to load it or how to make it works?
1
3171
by: Shailja | last post by:
Hi, Can anyone tell me how to add new row dynamically at runtime in VSFlexGrid? I have only one row in my grid at runtime. Now after adding one row, i want second row to be dynamically add in grid. How to do that? kindly let me know.
1
1918
by: Shailja | last post by:
Hi, Can anyone tell me how to set tab settings in VSFlexGrid? Control should move from one column to other. What property i need to set for that? Kindly let me know.
0
1719
by: Shailja | last post by:
Hi, My form contains VSFlexGrid. There are 10 columns in it. I want to put combobox in each cell of column 2. I want to bind that combobox to database also. How to code that? Kindly help me. I am stucked with this problem.
3
2472
by: Shailja | last post by:
Hi, I have kept combobox in VSFlexGrid. Now I want to make height and width of combo box to same height and width of that cell. How to do that? kindly help me soon if you know the asnwer.
4
5545
by: Shailja | last post by:
Hi, How to lock perticular cell of VSFlexGrid. Suppose I want to lock cell of Row 1 and column 2. How to do that? Kindly let me know if u know.
1
3293
by: Shailja | last post by:
Hi, Please go through the following code: i = VSFlexGrid.Rows i = i - 1 I am writting the statment VSFlexGrid.TextMatrix(i,0). Above statment generates an error "Type Mismatch".
0
1064
by: Shailja | last post by:
hello, I want to lock particular cell of VSFlexGrid. How to do that? I want to lock cell (Row1, Column 2). Kindly let me know if u know the answer
1
1946
by: Shailja | last post by:
I am using VB. I have one form in my project. I have following fields in that form 1) Bill No 2) Bill Date 3) Combobox of Customer 4) Address of Customer 5) Drug License No1 6) Drug License No2 7) VSFlexGrid.
0
9199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7785
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5884
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4391
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3075
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2016
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.