Click here to Skip to main content
15,891,513 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee6-Jan-14 8:37
Biplob Singha Shee6-Jan-14 8:37 
GeneralRe: DatagridView not display any data Pin
Ron Beyer6-Jan-14 8:58
professionalRon Beyer6-Jan-14 8:58 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee6-Jan-14 9:24
Biplob Singha Shee6-Jan-14 9:24 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee9-Jan-14 4:56
Biplob Singha Shee9-Jan-14 4:56 
GeneralRe: DatagridView not display any data Pin
Ron Beyer9-Jan-14 5:13
professionalRon Beyer9-Jan-14 5:13 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee9-Jan-14 6:28
Biplob Singha Shee9-Jan-14 6:28 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee9-Jan-14 6:32
Biplob Singha Shee9-Jan-14 6:32 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee9-Jan-14 6:52
Biplob Singha Shee9-Jan-14 6:52 
Ok, now I changed the DataType in to Date and changed the dates in to "yyyy-MM-dd" format in the database and changed my code for MySQL Date format...
VB
Dim DateFrom As String = Convert.ToDateTime(DtpFrom.Value).ToString("yyyy-MM-dd")
Dim DateTo As String = Convert.ToDateTime(DtpTo.Value).ToString("yyyy-MM-dd")


Now it retrieving the data correctly in between two dates but a new problem arises. The report date field not showing any date.

While viewing the datasource of crystal report (XML), the schema shows...

XML
<xs:element name="IncDate" msdata:DataType="MySql.Data.Types.MySqlDateTime, MySql.Data, Version=6.6.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" type="xs:anyType" minOccurs="0" />


and the data shows (in XML)
XML
<IncDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <TimezoneOffset>0</TimezoneOffset>
     <Year>2013</Year>
     <Month>12</Month>
     <Day>25</Day>
     <Hour>0</Hour>
     <Minute>0</Minute>
     <Second>0</Second>
     <Millisecond>0</Millisecond>
   </IncDate>

What should I do ?

Please note that in my ConnectionString the Allow Zero Datetime is set to "True". Is this the problem ?

modified 9-Jan-14 13:19pm.

GeneralRe: DatagridView not display any data Pin
Dave Kreskowiak6-Jan-14 9:21
mveDave Kreskowiak6-Jan-14 9:21 
GeneralRe: DatagridView not display any data Pin
Biplob Singha Shee6-Jan-14 9:27
Biplob Singha Shee6-Jan-14 9:27 
QuestionCOM component Pin
dharmendra113-Jan-14 20:01
dharmendra113-Jan-14 20:01 
AnswerRe: COM component Pin
Richard MacCutchan3-Jan-14 22:38
mveRichard MacCutchan3-Jan-14 22:38 
QuestionIncorporating setup with other EXEs Pin
SPSandy2-Jan-14 20:27
SPSandy2-Jan-14 20:27 
AnswerRe: Incorporating setup with other EXEs Pin
Bernhard Hiller2-Jan-14 21:50
Bernhard Hiller2-Jan-14 21:50 
GeneralRe: Incorporating setup with other EXEs Pin
SPSandy2-Jan-14 23:21
SPSandy2-Jan-14 23:21 
GeneralRe: Incorporating setup with other EXEs Pin
Heriberto Lugo5-Jan-14 20:14
Heriberto Lugo5-Jan-14 20:14 
QuestionRecovering VB.NET code Pin
Tim Carmichael2-Jan-14 7:37
Tim Carmichael2-Jan-14 7:37 
AnswerRe: Recovering VB.NET code Pin
Ron Beyer2-Jan-14 7:52
professionalRon Beyer2-Jan-14 7:52 
GeneralRe: Recovering VB.NET code Pin
Tim Carmichael2-Jan-14 8:36
Tim Carmichael2-Jan-14 8:36 
QuestionGraphics Pin
KanSanRag2-Jan-14 4:03
KanSanRag2-Jan-14 4:03 
AnswerRe: Graphics Pin
Chris Quinn2-Jan-14 5:03
Chris Quinn2-Jan-14 5:03 
QuestionData repeater Pin
tsunamigang31-Dec-13 2:24
tsunamigang31-Dec-13 2:24 
AnswerRe: Data repeater Pin
thatraja31-Dec-13 2:50
professionalthatraja31-Dec-13 2:50 
Questiondatagrid view Pin
tsunamigang31-Dec-13 1:25
tsunamigang31-Dec-13 1:25 
AnswerRe: datagrid view Pin
Gandalf_TheWhite31-Dec-13 1:40
professionalGandalf_TheWhite31-Dec-13 1: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.