Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: To parse a string which is in a specific format Pin
josephng3-Apr-08 19:55
josephng3-Apr-08 19:55 
QuestionHow to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Vignesh Krishnan2-Apr-08 18:42
Vignesh Krishnan2-Apr-08 18:42 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Krishnraj2-Apr-08 20:37
Krishnraj2-Apr-08 20:37 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Vignesh Krishnan2-Apr-08 22:58
Vignesh Krishnan2-Apr-08 22:58 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Dave Kreskowiak3-Apr-08 3:29
mveDave Kreskowiak3-Apr-08 3:29 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Vignesh Krishnan3-Apr-08 20:04
Vignesh Krishnan3-Apr-08 20:04 
GeneralRe: How to Bind Controls in GridView in VB.Net or C#.Net (Windows Application) Pin
Dave Kreskowiak4-Apr-08 3:04
mveDave Kreskowiak4-Apr-08 3:04 
Questionsearch a range of data by date to display in datagrid view Pin
zaimah2-Apr-08 16:49
zaimah2-Apr-08 16:49 
hi, i'm new in this. i want to display a list of data in my data grid view by the date that have been request. example i want a list from 1 feb 2008 untill 20 feb 2008. but nothing come out from the data grid except the title for each column in my datagrid.
so this is the code. or is it something wrong with my datagrid properties
[code]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim startDate As String
Dim endDate As String
Dim ds As DataSet = Nothing
startDate = y1.Text
endDate = y2.Text


Try


Dim cmd As SqlCommand = New SqlCommand("SELECT * FROM Senarai_Log where Date >= '" & startDate & "' and Date <= '" & endDate & "'", New SqlConnection("Server=MAHANI;Database=SPGALatihan;Persist Security Info=True;User ID=sysadm;Password=sysadm"))
cmd.Connection.Open()
Dim sqlDR As SqlDataReader = cmd.ExecuteReader()
DataGrid1.DataSource = sqlDR
DataGrid1.Visible = True
DataGrid1.DataBind()
DataGrid1.DataSource = Nothing
cmd.Connection.Close()
DataGrid1.Visible = True


Catch ex As Exception
ds = Nothing
Label8.Visible = True
Label8.Text = "NO DOKUMEN INI TIADA DALAM REKOD. SILA SEMAK DI DALAM SENARAI LOG"

End Try
End Sub
End Class
[/code]
GeneralRe: search a range of data by date to display in datagrid view Pin
Dave Kreskowiak3-Apr-08 3:27
mveDave Kreskowiak3-Apr-08 3:27 
QuestionRe: search a range of data by date to display in datagrid view Pin
zaimah3-Apr-08 14:43
zaimah3-Apr-08 14:43 
GeneralRe: search a range of data by date to display in datagrid view Pin
Dave Kreskowiak4-Apr-08 5:15
mveDave Kreskowiak4-Apr-08 5:15 
QuestionRe: search a range of data by date to display in datagrid view Pin
zaimah6-Apr-08 14:55
zaimah6-Apr-08 14:55 
Questionhow to get URL of already running firefox in vb.net application Pin
bhavin12302-Apr-08 16:38
bhavin12302-Apr-08 16:38 
AnswerRe: how to get URL of already running firefox in vb.net application Pin
Richard Andrew x642-Apr-08 17:34
professionalRichard Andrew x642-Apr-08 17:34 
GeneralRe: how to get URL of already running firefox in vb.net application Pin
bhavin12302-Apr-08 17:51
bhavin12302-Apr-08 17:51 
GeneralRe: how to get URL of already running firefox in vb.net application Pin
Richard Andrew x642-Apr-08 18:00
professionalRichard Andrew x642-Apr-08 18:00 
AnswerRe: how to get URL of already running firefox in vb.net application Pin
bhavin12303-Apr-08 16:31
bhavin12303-Apr-08 16:31 
GeneralApplication Licensing Pin
Mitch F.2-Apr-08 12:46
Mitch F.2-Apr-08 12:46 
GeneralRe: Application Licensing Pin
Thomas Stockwell2-Apr-08 15:27
professionalThomas Stockwell2-Apr-08 15:27 
GeneralRe: Application Licensing Pin
Richard Andrew x642-Apr-08 17:40
professionalRichard Andrew x642-Apr-08 17:40 
GeneralRe: Application Licensing Pin
Colin Angus Mackay2-Apr-08 22:54
Colin Angus Mackay2-Apr-08 22:54 
GeneralRe: Application Licensing Pin
Mitch F.3-Apr-08 16:20
Mitch F.3-Apr-08 16:20 
GeneralRe: Application Licensing Pin
Mark Churchill2-Apr-08 19:02
Mark Churchill2-Apr-08 19:02 
GeneralRe: Application Licensing Pin
Mitch F.2-Apr-08 20:20
Mitch F.2-Apr-08 20:20 
Questionhelp required for displaying autocad dwg files in vb6 form Pin
Anil V. Chaudhary2-Apr-08 3:19
Anil V. Chaudhary2-Apr-08 3:19 

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.