Click here to Skip to main content
15,920,383 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAbout Escape String for VB.NET connect MySQL Pin
drexler_kk16-Jul-08 17:10
drexler_kk16-Jul-08 17:10 
AnswerRe: About Escape String for VB.NET connect MySQL Pin
N a v a n e e t h16-Jul-08 19:56
N a v a n e e t h16-Jul-08 19:56 
QuestionRe: About Escape String for VB.NET connect MySQL Pin
drexler_kk16-Jul-08 20:25
drexler_kk16-Jul-08 20:25 
AnswerRe: About Escape String for VB.NET connect MySQL Pin
N a v a n e e t h17-Jul-08 17:09
N a v a n e e t h17-Jul-08 17:09 
QuestionRe: About Escape String for VB.NET connect MySQL Pin
drexler_kk17-Jul-08 17:50
drexler_kk17-Jul-08 17:50 
AnswerRe: About Escape String for VB.NET connect MySQL Pin
N a v a n e e t h18-Jul-08 17:04
N a v a n e e t h18-Jul-08 17:04 
QuestionRe: About Escape String for VB.NET connect MySQL Pin
drexler_kk20-Jul-08 17:50
drexler_kk20-Jul-08 17:50 
AnswerRe: About Escape String for VB.NET connect MySQL Pin
N a v a n e e t h20-Jul-08 20:38
N a v a n e e t h20-Jul-08 20:38 
GeneralRe: About Escape String for VB.NET connect MySQL Pin
drexler_kk21-Jul-08 16:31
drexler_kk21-Jul-08 16:31 
GeneralRe: About Escape String for VB.NET connect MySQL Pin
N a v a n e e t h21-Jul-08 16:49
N a v a n e e t h21-Jul-08 16:49 
QuestionI need help....!! Pin
Member 374662916-Jul-08 17:07
Member 374662916-Jul-08 17:07 
AnswerRe: I need help....!! Pin
Christian Graus16-Jul-08 17:59
protectorChristian Graus16-Jul-08 17:59 
GeneralRe: I need help....!! Pin
Paul Conrad17-Jul-08 16:43
professionalPaul Conrad17-Jul-08 16:43 
AnswerRe: I need help....!! Pin
Paul Conrad17-Jul-08 16:43
professionalPaul Conrad17-Jul-08 16:43 
Questionformatting numbers from a text box Pin
digicd116-Jul-08 11:06
digicd116-Jul-08 11:06 
AnswerRe: formatting numbers from a text box Pin
Mycroft Holmes16-Jul-08 20:17
professionalMycroft Holmes16-Jul-08 20:17 
GeneralRe: formatting numbers from a text box Pin
digicd122-Jul-08 10:49
digicd122-Jul-08 10:49 
QuestionORA-06502: PL/SQL: numeric or value error: character string buffer too smal Pin
ljammala16-Jul-08 10:39
ljammala16-Jul-08 10:39 
AnswerRe: ORA-06502: PL/SQL: numeric or value error: character string buffer too smal Pin
Mycroft Holmes16-Jul-08 20:22
professionalMycroft Holmes16-Jul-08 20:22 
GeneralRe: ORA-06502: PL/SQL: numeric or value error: character string buffer too smal Pin
ljammala17-Jul-08 2:15
ljammala17-Jul-08 2:15 
GeneralRe: ORA-06502: PL/SQL: numeric or value error: character string buffer too smal Pin
ljammala17-Jul-08 2:24
ljammala17-Jul-08 2:24 
QuestionNew Data Row Pin
zzsoulzz16-Jul-08 5:50
zzsoulzz16-Jul-08 5:50 
AnswerRe: New Data Row Pin
nlarson1116-Jul-08 6:52
nlarson1116-Jul-08 6:52 
AnswerRe: New Data Row Pin
paas16-Jul-08 6:59
paas16-Jul-08 6:59 
When you are adding new rows with an object array, you don't have to execute the NewRow() method before doing the Add. I'm also not sure why you would be setting your datagrid's datasource while still inside the for loop, or why you are adding columns to dt2 while inside the for loop. Maybe I'm just not seeing the forest for the trees. Anyways, one suggestion would be for you to change your code to something like the following and see if that resolves your issue. I'm not sure it will, but it's a thought.

Dim dr As DataRow
Dim dt As New DataTable

dt = objDataSet.Tables(0)

Dim dt2 As New DataTable
dt2.Columns.Add("IC Roll")
dt2.Columns.Add("F2")
dt2.Columns.Add("F3")

For Each dr In dt.Rows
 For i As Integer = 0 To dt.Columns.Count - 1
 
  If dr(i).ToString = TextBox1.Text Then
    Dim arData() As Object = {dr(0), dr(1), dr(2)} 
    dt2.Rows.Add(arData)
    Exit For
  End If
 Next
Next
dt2.AcceptChanges()
DataGrid2.DataSource = dt2

QuestionCalculating intervals using Dates Pin
KrisnNala16-Jul-08 5:41
KrisnNala16-Jul-08 5:41 

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.