validating empty cell on Value changed ? |
Post Reply |
Author | |
BoboP
Groupie Joined: 21 March 2008 Status: Offline Points: 25 |
Post Options
Thanks(0)
Posted: 25 June 2008 at 3:31am |
Hi !
I used values changed event to identify if cell value is empty . But if cell value is empty and it looses its focus , values changed event does not get fired. It fires only if you types something. Now my problem id prevent user from keeping some cells empty . How to do that Help ! |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Add items with default values. User knows what to enter (value or chars) and you don't have to check the empty fields. You only have to check if an item has been changed.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
BoboP
Groupie Joined: 21 March 2008 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Hi,
Thanks for replying.. I can give default values but is there any other way , we can check for mandatory fields ? And warn user for empty fields? |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Private Sub wndPropertyGridFiles_AfterEdit(ByVal Item As XtremePropertyGrid.IPropertyGridItem, NewValue As String, Cancel As Boolean)
If NewValue = Empty Then MsgBox "This field is required, cannot be empty" Cancel = False ' I would expect this to work but it isn't :( End If End Sub This event fires also when no value or same value is entered. But it should be selected again if cancel = false. I ask myself what the purpose of cancel in this event is
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |