Click here to Skip to main content
15,896,207 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB6 and excel Pin
Joshua Quick24-Feb-06 8:50
Joshua Quick24-Feb-06 8:50 
GeneralRe: VB6 and excel Pin
Divya Rathi24-Feb-06 9:01
Divya Rathi24-Feb-06 9:01 
GeneralRe: VB6 and excel Pin
Waldermort24-Feb-06 12:51
Waldermort24-Feb-06 12:51 
GeneralRe: VB6 and excel Pin
Waldermort24-Feb-06 13:36
Waldermort24-Feb-06 13:36 
QuestionDataGrid Current Row and Field Pin
New_Coder24-Feb-06 5:32
New_Coder24-Feb-06 5:32 
AnswerRe: DataGrid Current Row and Field Pin
Dean_SF24-Feb-06 8:32
Dean_SF24-Feb-06 8:32 
AnswerRe: DataGrid Current Row and Field Pin
Felipe Dalorzo24-Feb-06 8:35
Felipe Dalorzo24-Feb-06 8:35 
GeneralRe: DataGrid Current Row and Field Pin
New_Coder24-Feb-06 10:51
New_Coder24-Feb-06 10:51 
OK I think I have got what I am looking for with:

Dim MyCell As DataGridCell
Dim MyRow As Integer
Dim MyCol As Integer
Dim MyData As String

MyCell = TestGrid.CurrentCell
MyRow = (MyCell.RowNumber)
MyCol = (MyCell.ColumnNumber)

MyData = CODE_DataSet.Tables(CODE_TABLE).Rows(MyRow).Item(MyCol)

COMPANY.Text =MyData

This will work as long as there is data in the cell I clicked on.
How do I test for NULL?
What variable type do I need to set MyData so I dont get a compiler error
"Cast from type DBNull to type String in not valid"
GeneralRe: DataGrid Current Row and Field Pin
alien viper24-Feb-06 18:11
alien viper24-Feb-06 18:11 
Question[Message Deleted] Pin
Rashar24-Feb-06 4:25
Rashar24-Feb-06 4:25 
AnswerRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 4:46
Felipe Dalorzo24-Feb-06 4:46 
GeneralRe: Why won't my button click event work with this code? Pin
Rashar24-Feb-06 4:52
Rashar24-Feb-06 4:52 
GeneralRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 5:19
Felipe Dalorzo24-Feb-06 5:19 
GeneralRe: Why won't my button click event work with this code? Pin
Rashar24-Feb-06 5:47
Rashar24-Feb-06 5:47 
GeneralRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 6:16
Felipe Dalorzo24-Feb-06 6:16 
QuestionWhats wrong with this.......... Pin
daviiie24-Feb-06 4:09
daviiie24-Feb-06 4:09 
AnswerRe: Whats wrong with this.......... Pin
Felipe Dalorzo24-Feb-06 4:55
Felipe Dalorzo24-Feb-06 4:55 
GeneralRe: Whats wrong with this.......... Pin
daviiie24-Feb-06 5:17
daviiie24-Feb-06 5:17 
AnswerRe: Whats wrong with this.......... Pin
Roy Heil24-Feb-06 5:22
professionalRoy Heil24-Feb-06 5:22 
QuestionMerge Pdf Files Pin
contact ajo24-Feb-06 3:46
contact ajo24-Feb-06 3:46 
QuestionPassword hacking Pin
Osama12324-Feb-06 3:18
Osama12324-Feb-06 3:18 
AnswerRe: Password hacking Pin
J4amieC24-Feb-06 3:45
J4amieC24-Feb-06 3:45 
AnswerRe: Password hacking Pin
[DK]KiloDunse24-Feb-06 6:24
[DK]KiloDunse24-Feb-06 6:24 
QuestionHow to kill an Excel process? Pin
Juan Pedro Prez24-Feb-06 2:34
Juan Pedro Prez24-Feb-06 2:34 
AnswerRe: How to kill an Excel process? Pin
Dean_SF24-Feb-06 8:40
Dean_SF24-Feb-06 8:40 

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.