Click here to Skip to main content
15,881,852 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: useing .MovePrevious() etc Pin
Johan Hakkesteegt20-Jul-09 2:48
Johan Hakkesteegt20-Jul-09 2:48 
GeneralRe: useing .MovePrevious() etc Pin
StephenFinch20-Jul-09 3:02
StephenFinch20-Jul-09 3:02 
QuestionValidating a cell in DataGrid Pin
rhtbhegade20-Jul-09 0:51
rhtbhegade20-Jul-09 0:51 
AnswerRe: Validating a cell in DataGrid Pin
Jay Royall20-Jul-09 1:02
Jay Royall20-Jul-09 1:02 
GeneralRe: Validating a cell in DataGrid Pin
rhtbhegade20-Jul-09 2:11
rhtbhegade20-Jul-09 2:11 
GeneralRe: Validating a cell in DataGrid Pin
Jay Royall20-Jul-09 2:27
Jay Royall20-Jul-09 2:27 
GeneralRe: Validating a cell in DataGrid Pin
rhtbhegade20-Jul-09 2:37
rhtbhegade20-Jul-09 2:37 
GeneralRe: Validating a cell in DataGrid Pin
Jay Royall20-Jul-09 2:48
Jay Royall20-Jul-09 2:48 
Ah I see. Well the CellValidating event validates the content of cell that has just lost focus (well that's the way I interpret it anyway). Therefore, you have to check which cell is being validated and then do the validation.

So what I do (and this isn't necessarily the best or the only way) is use a select statement to determone which cell is being validated and then do the required validation. Something like:

Select Case dgvstock.Columns(e.ColumnIndex).Name

   Case "Description"
      -- do your validation for the description column here --

End select

Hope this helps.
AnswerRe: Validating a cell in DataGrid Pin
dan!sh 20-Jul-09 1:02
professional dan!sh 20-Jul-09 1:02 
QuestionNeed help to add a VB shortcut(hotkey) key to function Pin
kaartikavin19-Jul-09 23:48
kaartikavin19-Jul-09 23:48 
AnswerRe: Need help to add a VB shortcut(hotkey) key to function Pin
nlarson1120-Jul-09 2:29
nlarson1120-Jul-09 2:29 
GeneralRe: Need help to add a VB shortcut(hotkey) key to function Pin
Dave Kreskowiak20-Jul-09 4:18
mveDave Kreskowiak20-Jul-09 4:18 
AnswerRe: Need help to add a VB shortcut(hotkey) key to function Pin
Dave Kreskowiak20-Jul-09 4:19
mveDave Kreskowiak20-Jul-09 4:19 
Questionhow to check is SQLServer2005 is installed on my m/c Pin
koolprasad200319-Jul-09 21:06
professionalkoolprasad200319-Jul-09 21:06 
AnswerRe: how to check is SQLServer2005 is installed on my m/c Pin
Vimalsoft(Pty) Ltd19-Jul-09 22:48
professionalVimalsoft(Pty) Ltd19-Jul-09 22:48 
QuestionUpgrade Failure? Pin
teknozwizard19-Jul-09 20:47
teknozwizard19-Jul-09 20:47 
AnswerRe: Upgrade Failure? Pin
Johan Hakkesteegt19-Jul-09 21:20
Johan Hakkesteegt19-Jul-09 21:20 
GeneralRe: Upgrade Failure? Pin
teknozwizard20-Jul-09 4:04
teknozwizard20-Jul-09 4:04 
GeneralRe: Upgrade Failure? Pin
Johan Hakkesteegt21-Jul-09 0:16
Johan Hakkesteegt21-Jul-09 0:16 
Questionconvert string to int? Pin
veon cheng19-Jul-09 20:02
veon cheng19-Jul-09 20:02 
AnswerRe: convert string to int? Pin
Andy_L_J19-Jul-09 20:11
Andy_L_J19-Jul-09 20:11 
GeneralRe: convert string to int? Pin
veon cheng19-Jul-09 20:16
veon cheng19-Jul-09 20:16 
GeneralRe: convert string to int? Pin
Andy_L_J19-Jul-09 20:37
Andy_L_J19-Jul-09 20:37 
GeneralRe: convert string to int? Pin
veon cheng19-Jul-09 21:28
veon cheng19-Jul-09 21:28 
AnswerRe: convert string to int? Pin
koolprasad200319-Jul-09 21:05
professionalkoolprasad200319-Jul-09 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.