General information
Category:
Forms & Form designer
Title:
Help with readonly txtbox in a grid...
I was told to re-post this messeage here, instead of Chatter. Excuse the re-post.
Now then...
I have a column with a standard readonly textbox to display the vendor name, and also another textbox custom class in that same column (not readonly) that inputs and validates the vendor number. Currentcontrol is set to TextBox2.
The sparse setting uses the TextBox1 to display the name in all but the current cell, and the current cell uses my special textbutton class to get and validate the vendor number.
When I add a new row with the cmdNew.Click() method, I do append blank, and then setfocus to grid.column1. At that point TextBox2 gets focus, but when I try to type it is readonly (a message saying "Control is read only" pops up in the lower left hand corner of the screen.
Column.readonly=.f.
column.text1.readonly=.t.
column.text2.readonly=.f.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only