FlexGrid Validation

!!! NEW YEAR WISHES !!!

Hi,

the input that i give in flexgrid needs to be validated.

my 1st column must be only a numeric one(Product ID).No text to be typed. In KeyPress event itself i have to check whether only numbers are being pressed.

next column must be of text type that has to be retrieved from the database based on the code i give in 1st column.so no editing to be allowed for this column.

Also, i have a Master form where i have all the product details.so if i dont know the code, i will b opening that form. And the field, which is selected(highligted) in that master form have to be displayed automatically in the 1st column of the Flexgrid.

NOTE: all the product details in Master form are displayed in MSFlexGrid control.

Plz help me to solve this problem.

Thank You!!!

[811 byte] By [preethi_rjs] at [2007-12-28]
# 1

preethi_rjs,

Do you mean that you need to write a sub that can validate? There is a piece of code shows the validation sub as follows:

Private Sub MSFlexGrid1_Validate(ByVal Cancel As Boolean)

txtlog = txtlog & "MSFlexGrid1 Validate" & vbCrLf

End Sub

Is that what you want?

BrunoYu-MSFT at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic General...