Clearing reverse color on a selected row in MSFlexgrid

I cannot find a method for clearing the reverse colorization in a msflexgrid on a row that has been selected whenever I want to clear the grid.  I display information in the grid, click the desired row and transfer the information on the row to text boxes for editing.  When completed and the information is saved, I want to use the MSFLEXGRID.CLEAR statement.  This works fine but the last selected row continues to be displayed with the reversed color.  I want the entire row, not just a cell, set back to VBWHITE.

Any ideas?
jgarner43Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ExtremeFitnessCommented:
Clear the selection first?
0
jgarner43Author Commented:
How!  I have not seen any methd for clearing a row or setting all cells in a row.
0
pradapkumarCommented:
if u want to set or reset a content in a cell then u can use the following snippet.

To Reset the cells in a Row

For i = 0 to MSFlexGrid1.Cols - 1
    MSFlexGrid1.TextMatrix(.Row,i) = ""
Next i

To Set the cells in a Row

MSFlexGrid1.TextMatrix(.Row,0) = TextBox1.Text
MSFlexGrid1.TextMatrix(.Row,1 = TextBox2Text
and so on....
0
lalitgadaCommented:
When You use the MSFLEXGRID.CLEAR statement the backcolor of the cell automatically sets to the default cell backcolor but if it doesn't works for you, try out the following Code


Private Sub Command1_Click()
Dim totalRows
totalRows = MSFlexGrid1.Rows
    For j = 1 To totalRows
        For i = 1 To MSFlexGrid1.Cols - 1
            MSFlexGrid1.Col = i
            MSFlexGrid1.CellBackColor = vbWhite
        Next
    Next
End Sub

Thanks
Lalit

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.