Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inserting a txtbox number into a certain column in a grid

Status
Not open for further replies.

Tailgun

Technical User
Mar 30, 2002
417
US
I have a form with a textbox that contains a number the form has a grid. I need to insert the textbox number into one of the columns in each row in that grid.

Any suggestions would be really appreciated.

Thanks
 
Give this a shot. It will place the value in your textbox into the first column in your grid.

with myGrid
.col = 0
For x = 0 To .Rows
.row = x
.text = txtBox.Text
Next
end with

If memory serves then this should do the same thing. . .

For x = 0 To myGrid.Rows
myGrid.TextMatrix(x, 0) = txtBox.Text
Next

Matt
 
Thanks alot Matt I will give it a shot and let you know.
Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top