| | |
help:how to select a record in MSH flexgrid
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
my problem is that i have a search form for customers ,i want to use msh flex grid to show the results of search, i am searching for a customer which are stored in a database.
suppose i want to update some information of a specific customer listed in msh flexgrid after the search.so i want to select the whole row and wen i press updatebutton these fields are retrieved into some textboxes...the problem is that with msh flex grid i can search for customers,,but cant selct a row and retrieve to text boxes for updation.
when i did with datagrid its working fine..absolutely fine...but i want to use mshflexgrid...
is there a solution for my problem
suppose i want to update some information of a specific customer listed in msh flexgrid after the search.so i want to select the whole row and wen i press updatebutton these fields are retrieved into some textboxes...the problem is that with msh flex grid i can search for customers,,but cant selct a row and retrieve to text boxes for updation.
when i did with datagrid its working fine..absolutely fine...but i want to use mshflexgrid...
is there a solution for my problem
•
•
Join Date: Apr 2008
Posts: 34
Reputation:
Solved Threads: 4
First, unless you plan on using the hierarchical aspects of the grid, I'd suggest using the standard MSFlexGrid rather than the MSHFlexGrid.
To address your question, you can use the TextMatrix property to retrieve the text from each column in the selected row.
You can find the complete reference to both FlexGrid controls in the Microsoft MSDN Library.
http://msdn2.microsoft.com/en-us/lib...39(VS.60).aspx
To address your question, you can use the TextMatrix property to retrieve the text from each column in the selected row.
You can find the complete reference to both FlexGrid controls in the Microsoft MSDN Library.
http://msdn2.microsoft.com/en-us/lib...39(VS.60).aspx
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub UpdateButton_Click() Dim RowNum as long 'Return the selected row number RowNum = MyGrid.Row 'Example: Returns the text from column 5 of the selected row Text1.Text = MyGrid.TextMatrix(RowNum, 5) 'NOTE: The reverse will set the column text 'MyGrid.TextMatrix(RowNum, 5) = "Some text value" End Sub
please don't hijack other thread. make your own thread, so others people can read and giving some help. ok friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Error using crystl32.ocx
- Next Thread: how to play wav file
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






