Click here to Skip to main content
15,915,867 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: stored procedure with vb.bet Pin
nishugaurav5-Aug-08 23:07
nishugaurav5-Aug-08 23:07 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp6-Aug-08 4:27
reynaldosp6-Aug-08 4:27 
AnswerRe: stored procedure with vb.bet Pin
Guffa5-Aug-08 8:01
Guffa5-Aug-08 8:01 
GeneralRe: stored procedure with vb.bet Pin
reynaldosp5-Aug-08 8:30
reynaldosp5-Aug-08 8:30 
GeneralRe: stored procedure with vb.bet Pin
Guffa5-Aug-08 12:52
Guffa5-Aug-08 12:52 
JokeRe: stored procedure with vb.bet Pin
Mycroft Holmes5-Aug-08 21:33
professionalMycroft Holmes5-Aug-08 21:33 
GeneralRe: stored procedure with vb.bet Pin
Guffa6-Aug-08 3:11
Guffa6-Aug-08 3:11 
QuestionCopy pasting datarow Pin
zzsoulzz5-Aug-08 7:16
zzsoulzz5-Aug-08 7:16 
Hey guys currently i have this setup.

1. Enter say "123" in textbox1.text
2. click button will search datarow in datagrid1
3. copy datarow and append it to datagrid2
4. will delete the line it copied from

for the first click it will work but the 2nd one it prompts "cannot access delete row" when what i type in textbox1.text is "345" totally different

    Dim dr As DataRow, drNew As DataRow<br />
        Dim dt As DataTable = objDataSet.Tables(0)<br />
<br />
            For Each dr In dt.Rows<br />
                For i As Integer = 0 To dt.Columns.Count - 1<br />
                    If dr(i).ToString = TextBox1.Text Then<br />
                        drNew = dt2.NewRow<br />
                        drNew(0) = dr(0)<br />
                        drNew(1) = dr(1)<br />
                    drNew(2) = dr(2)<br />
<br />
                        dt2.Rows.Add(drNew)<br />
                    drNew = Nothing<br />
                    dr.Delete()<br />
                    Exit For<br />
                    End If<br />
                Next<br />
            Next<br />
            DataGrid2.DataSource = dt2<br />
        End Sub

AnswerRe: Copy pasting datarow Pin
Mycroft Holmes5-Aug-08 21:38
professionalMycroft Holmes5-Aug-08 21:38 
QuestionHow do I build a custom popup screen to modify the properties of a custom control? Pin
chas0365-Aug-08 7:08
chas0365-Aug-08 7:08 
AnswerRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
Thomas Stockwell5-Aug-08 9:05
professionalThomas Stockwell5-Aug-08 9:05 
GeneralRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
chas0365-Aug-08 9:17
chas0365-Aug-08 9:17 
GeneralRe: How do I build a custom popup screen to modify the properties of a custom control? Pin
Thomas Stockwell5-Aug-08 9:48
professionalThomas Stockwell5-Aug-08 9:48 
QuestionDrag-and-Drop in VB.NET Pin
jacobjordan5-Aug-08 6:48
jacobjordan5-Aug-08 6:48 
AnswerRe: Drag-and-Drop in VB.NET Pin
Bassam Saoud5-Aug-08 6:54
Bassam Saoud5-Aug-08 6:54 
QuestionEnumeration - Public enum statement question Pin
chas0365-Aug-08 4:11
chas0365-Aug-08 4:11 
AnswerRe: Enumeration - Public enum statement question PinPopular
jzonthemtn5-Aug-08 4:21
jzonthemtn5-Aug-08 4:21 
GeneralRe: Enumeration - Public enum statement question Pin
Oakman5-Aug-08 7:34
Oakman5-Aug-08 7:34 
GeneralRe: Enumeration - Public enum statement question Pin
jzonthemtn5-Aug-08 7:49
jzonthemtn5-Aug-08 7:49 
GeneralRe: Enumeration - Public enum statement question Pin
MidwestLimey5-Aug-08 12:12
professionalMidwestLimey5-Aug-08 12:12 
QuestionHelp understanding C# to VB.Net translation of event handlers... Need C# and VB.Net expert... Pin
Keith Yerian5-Aug-08 3:24
Keith Yerian5-Aug-08 3:24 
AnswerRe: Help understanding C# to VB.Net translation of event handlers... Need C# and VB.Net expert... Pin
Dave Doknjas5-Aug-08 5:04
Dave Doknjas5-Aug-08 5:04 
AnswerRe: Help understanding C# to VB.Net translation of event handlers... Need C# and VB.Net expert... Pin
paas5-Aug-08 5:05
paas5-Aug-08 5:05 
QuestionHow to merge cells of table control Pin
Rameez Raja5-Aug-08 0:58
Rameez Raja5-Aug-08 0:58 
AnswerRe: How to merge cells of table control Pin
John_Adams5-Aug-08 3:02
John_Adams5-Aug-08 3:02 

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.