Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need to put validations on vsflexgrid if there having no values in it
Posted
Comments
Richard C Bishop 5-Sep-13 14:13pm    
Ok......go!

1 solution

As per your question i guess the following code snippet will help you

Check the grid textmatrix...

if it is blank then no data...

example:

VB
For i = 1 To vsflexgrid.Rows - 1
    if (vsflexgrid.TextMatrix(i, 0) = "") then
        msgbox("No Data")
    else
        msgbox("Data Present")
    endif
Next i


Hope this will solve your query...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900