Click here to Skip to main content
15,914,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Error Pin
Colin Angus Mackay18-Nov-07 3:00
Colin Angus Mackay18-Nov-07 3:00 
Questionurlbox need help Pin
omegageddon17-Nov-07 21:59
omegageddon17-Nov-07 21:59 
AnswerRe: urlbox need help Pin
Christian Graus18-Nov-07 11:43
protectorChristian Graus18-Nov-07 11:43 
GeneralRe: urlbox need help Pin
omegageddon19-Nov-07 0:07
omegageddon19-Nov-07 0:07 
Questioncrystal report 8.5 with vb6 Pin
w20917-Nov-07 17:26
w20917-Nov-07 17:26 
AnswerRe: crystal report 8.5 with vb6 Pin
r_mohd17-Nov-07 20:38
r_mohd17-Nov-07 20:38 
QuestionDatagridview Move Up/Down buttons? [modified] Pin
rxsid17-Nov-07 8:06
rxsid17-Nov-07 8:06 
AnswerRe: Datagridview Move Up/Down buttons? Pin
rxsid21-Nov-07 6:55
rxsid21-Nov-07 6:55 
I have 'something' of progress, here's what I have so far that at least I can identify the current row (sub for when 'up' button is pushed):
<br />
'MsgBox("Row number is " & dgvEmployee.CurrentCell.RowIndex)<br />
'MsgBox("Row number is " & dgvEmployee.CurrentRow.Index)<br />
'MsgBox("Column Count is " & cC)<br />
<br />
Dim cC As Integer<br />
cC = (dgvEmployee.Columns.Count - 1)<br />
<br />
Dim bm As Windows.Forms.BindingManagerBase = dgvEmployee.BindingContext( _<br />
dgvEmployee.DataSource, dgvEmployee.DataMember)<br />
<br />
Dim bm2 As Windows.Forms.BindingManagerBase = dgvEmployee.BindingContext( _<br />
dgvEmployee.DataSource, dgvEmployee.DataMember)<br />
'HOW TO GET PREV ROW?<br />
<br />
Dim dr As DataRow = CType(bm.Current, DataRowView).Row<br />
Dim dr2 As DataRow = CType(bm.Current, DataRowView).Row<br />
<br />
Dim x As Integer<br />
Dim Buffer As New System.Text.StringBuilder<br />
<br />
For x = 0 To cC<br />
Buffer.Append(dr(x) & " ")<br />
Next<br />
<br />
Dim theCurrentRow As String<br />
theCurrentRow = Buffer.ToString()<br />
<br />
Buffer = Nothing<br />
<br />
<br />
Dim y As Integer<br />
For y = 0 To cC<br />
Buffer.Append(dr2(y) & "")<br />
Next<br />
<br />
Dim thePreviousRow As String<br />
thePreviousRow = Buffer.ToString()


It works for the current row selected.

How do I find the previous row? I tried getting dr2 to work like dr by pointing to -1, etc...but can't get it to work.

Any suggestions?
QuestionString.Formate with { character Pin
Aftab Sindhi17-Nov-07 6:55
Aftab Sindhi17-Nov-07 6:55 
AnswerRe: String.Formate with { character Pin
Luc Pattyn17-Nov-07 8:17
sitebuilderLuc Pattyn17-Nov-07 8:17 
GeneralRe: String.Formate with { character Pin
Aftab Sindhi18-Nov-07 19:28
Aftab Sindhi18-Nov-07 19:28 
GeneralRe: String.Formate with { character Pin
Luc Pattyn19-Nov-07 1:17
sitebuilderLuc Pattyn19-Nov-07 1:17 
QuestionProblem with Private Font Collection Pin
bob_up17-Nov-07 4:38
bob_up17-Nov-07 4:38 
AnswerRe: Problem with Private Font Collection Pin
supercat917-Nov-07 10:10
supercat917-Nov-07 10:10 
QuestionInterface FORTRAN90 to VisualBasic - DLL Pin
Sergio2santos17-Nov-07 1:59
Sergio2santos17-Nov-07 1:59 
AnswerRe: Interface FORTRAN90 to VisualBasic - DLL Pin
Luc Pattyn17-Nov-07 2:24
sitebuilderLuc Pattyn17-Nov-07 2:24 
AnswerRe: Interface FORTRAN90 to VisualBasic - DLL Pin
DQNOK19-Nov-07 12:55
professionalDQNOK19-Nov-07 12:55 
GeneralRe: Interface FORTRAN90 to VisualBasic - DLL Pin
Sergio2santos19-Nov-07 14:21
Sergio2santos19-Nov-07 14:21 
GeneralRe: Interface FORTRAN90 to VisualBasic - DLL Pin
DQNOK20-Nov-07 3:55
professionalDQNOK20-Nov-07 3:55 
Question[2008] Make a Documents.FixedPage from an XML literal? Pin
Duncan Edwards Jones17-Nov-07 0:33
professionalDuncan Edwards Jones17-Nov-07 0:33 
QuestionHow to search a PDF document Pin
midnightshifting16-Nov-07 21:19
midnightshifting16-Nov-07 21:19 
AnswerRe: How to search a PDF document Pin
DigiOz Multimedia17-Nov-07 4:55
DigiOz Multimedia17-Nov-07 4:55 
QuestionRestart System when printing Report in VB.net Pin
mashouri16-Nov-07 19:51
mashouri16-Nov-07 19:51 
AnswerRe: Restart System when printing Report in VB.net Pin
DigiOz Multimedia17-Nov-07 4:51
DigiOz Multimedia17-Nov-07 4:51 
QuestionHandling Valuemember of Combox placed in a grid Pin
infotools16-Nov-07 19:04
infotools16-Nov-07 19:04 

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.