Click here to Skip to main content
15,897,187 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to get newest file through VB Pin
C1AllenS30-Oct-07 23:32
C1AllenS30-Oct-07 23:32 
GeneralRe: How to get newest file through VB Pin
Support12331-Oct-07 1:39
Support12331-Oct-07 1:39 
AnswerRe: How to get newest file through VB Pin
Aftab Sindhi31-Oct-07 7:35
Aftab Sindhi31-Oct-07 7:35 
QuestionAuto generate Uniqueidentifier / GUID in Select statement Pin
Aftab Sindhi30-Oct-07 20:01
Aftab Sindhi30-Oct-07 20:01 
AnswerRe: Auto generate Uniqueidentifier / GUID in Select statement Pin
fazeepk30-Oct-07 23:04
fazeepk30-Oct-07 23:04 
AnswerRe: Auto generate Uniqueidentifier / GUID in Select statement Pin
Dave Kreskowiak31-Oct-07 5:14
mveDave Kreskowiak31-Oct-07 5:14 
GeneralRe: Auto generate Uniqueidentifier / GUID in Select statement Pin
Aftab Sindhi31-Oct-07 7:21
Aftab Sindhi31-Oct-07 7:21 
GeneralRe: Auto generate Uniqueidentifier / GUID in Select statement Pin
Dave Kreskowiak31-Oct-07 9:42
mveDave Kreskowiak31-Oct-07 9:42 
Aftab Sindhi wrote:
I know Excel is not database and has no NEWID() function. Purpose to ask the question was, may be I've not enough knowledge about Excel.


It has nothing to do with Excel. There is no function in the Jet database engine that generates Guids. Jet is where the SQL expression is going to be parsed and executed. Excel is just used as datastore.


Aftab Sindhi wrote:
May be there is any other function/way available


I already said the only way you've got is the one you're already using.


Aftab Sindhi wrote:
I think DataTable is not related to any database.


No, it's not. It's an in-memory copy of the data and metadata retrieved from a database, or some other datastore.


Aftab Sindhi wrote:
Why its not firing events, when it is populated by any means(i.e. FILLed by DataAdapter).


Probably because the events have to be wired up manually. You create a new instance of a DataTable, then you use AddHandler to wire up the events.

Also, when filling a DataTable with a DataAdapter, the events will not fire because the rows are not being added to the DataTable using the methods exposed by the DT. If they did, there would be a massive number of events firing, nearly all at once, while the table was being filled.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


Questionlist in report Pin
di3.ny2830-Oct-07 16:09
di3.ny2830-Oct-07 16:09 
AnswerRe: list in report Pin
svanwass31-Oct-07 5:32
svanwass31-Oct-07 5:32 
AnswerRe: list in report Pin
Dave Kreskowiak31-Oct-07 5:51
mveDave Kreskowiak31-Oct-07 5:51 
GeneralRe: list in report Pin
di3.ny2831-Oct-07 16:29
di3.ny2831-Oct-07 16:29 
Questionhelp programming button click event Pin
SilentCodingOne30-Oct-07 10:30
SilentCodingOne30-Oct-07 10:30 
AnswerRe: help programming button click event Pin
Christian Graus30-Oct-07 11:26
protectorChristian Graus30-Oct-07 11:26 
QuestionHow can I define table of an existed Excel file? Pin
ATC30-Oct-07 10:08
ATC30-Oct-07 10:08 
AnswerRe: How can I define table of an existed Excel file? Pin
pmarfleet30-Oct-07 12:45
pmarfleet30-Oct-07 12:45 
GeneralRe: How can I define table of an existed Excel file? Pin
ATC31-Oct-07 3:43
ATC31-Oct-07 3:43 
GeneralRe: How can I define table of an existed Excel file? Pin
pmarfleet31-Oct-07 3:48
pmarfleet31-Oct-07 3:48 
QuestionWrapper for VB6 error - "The system cannot find the file specified." Pin
Marcus J. Smith30-Oct-07 7:05
professionalMarcus J. Smith30-Oct-07 7:05 
GeneralRe: Wrapper for VB6 error - "The system cannot find the file specified." Pin
chrispo_m31-Oct-07 3:13
chrispo_m31-Oct-07 3:13 
GeneralRe: Wrapper for VB6 error - "The system cannot find the file specified." Pin
Marcus J. Smith31-Oct-07 4:07
professionalMarcus J. Smith31-Oct-07 4:07 
GeneralRe: Wrapper for VB6 error - "The system cannot find the file specified." Pin
Member 811728129-Mar-12 1:28
Member 811728129-Mar-12 1:28 
AnswerRe: Wrapper for VB6 error - "The system cannot find the file specified." Pin
Dave Kreskowiak31-Oct-07 5:49
mveDave Kreskowiak31-Oct-07 5:49 
GeneralRe: Wrapper for VB6 error - "The system cannot find the file specified." Pin
Marcus J. Smith31-Oct-07 8:14
professionalMarcus J. Smith31-Oct-07 8:14 
Questioncrystal reports labels Pin
Tom Deketelaere30-Oct-07 6:16
professionalTom Deketelaere30-Oct-07 6:16 

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.