-
Populate a Text Box from a FlexGrid
Hi,
Those who helped with my last problem may understand what I am trying to do....
basically, I have a flexgrid with 3 columns, SCORE PING PLAYER-NAME
and there are around 15 rows, (it varies depending how many players are on the server)
What I want to happen is when I click on a row, Three text boxes fill with the information in that row. then when i click different row, they textboxes then fill with the data in that different row.
Jenks
-
When you click on a new row, the flexgrid raises a RowColChanged event. In that event, you can use the TextMatrix property to read data from the desired cells, or simply read the data from the underlying data source.
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
i did that...with this code ..
Text1.Text = MSFlexGrid1.TextMatrix(intCurRow, 0)
then, when I click on a row in the grid...the text1.text fills with the word ping which is the first cell in the first column.....when i click on other rows, it doesnt change...
any ideas..
JenKS
-
What is the value of intCurRow? Where/how are you setting it?
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
I am using this which i found in another example....
Dim intCurRow As Integer
Dim strCell1 As String
Dim strCell2 As String
Dim strCell3 As String
intCurRow = MSFlexGrid1.Row
strCell1 = MSFlexGrid1.TextMatrix(intCurRow, 0)
strCell2 = MSFlexGrid1.TextMatrix(intCurRow, 1)
strCell3 = MSFlexGrid1.TextMatrix(intCurRow, 2)
which I am putting under - MSFLEXGRID1_Click()
is this right? if not, what have i done wrong?
JenkS
-
Instead of using the "Row" property, try the "MouseRow" property.
Bob Rouse
Dimension Data
-
Ive got it to work...thanks alot
JenKs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks