|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Ctype Datasource to DataTable .. always empty?The below always results in an empty table, when I know the Gridview
has rows. Dim dataTable As DataTable = CType(ChargeGridView.DataSource, DataTable) If Not (dataTable Is Nothing) Then '****** (THIS IS ALWAYS FALSE) **** Is there a correct way to do this? I think you should try to display the dataTable of the dataSet that you
originally set the ChargeGridView.DataSource to say Dim ds as DataSet 'Fill ds with data ChargeGridView.DataSource = ds 'now you can access the data in the ds Dim dataTable As DataTable = ds.tables(0) Show quoteHide quote On Oct 23, 12:43 pm, "jobs" <j***@webdos.com> wrote: > The below always results in an empty table, when I know the Gridview > has rows. > > Dim dataTable As DataTable = CType(ChargeGridView.DataSource, > DataTable) > If Not (dataTable Is Nothing) Then '****** (THIS IS ALWAYS > FALSE) **** > > Is there a correct way to do this?
How to receive an array of doubles using VB from a C DLL
Question about rounding the decimal Need help re: vb.net windows forms Controlling how Excel starts when using VB.Net Automation Having problems with SetWindowText api DataView Question What are the strings that define a connection's server version? Event firing order [Newbie] How can I do that ? Linking with .OBJ object files |
|||||||||||||||||||||||