Click here to Skip to main content
15,910,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ByReference help Pin
Dave Kreskowiak6-Aug-04 6:52
mveDave Kreskowiak6-Aug-04 6:52 
GeneralRe: ByReference help Pin
Anonymous6-Aug-04 7:29
Anonymous6-Aug-04 7:29 
GeneralRe: ByReference help Pin
Dave Kreskowiak6-Aug-04 8:02
mveDave Kreskowiak6-Aug-04 8:02 
GeneralRe: ByReference help Pin
normanordas10-Aug-04 21:49
normanordas10-Aug-04 21:49 
GeneralNeed more helps at datagrid button column Pin
Lisana6-Aug-04 4:15
Lisana6-Aug-04 4:15 
GeneralGood book on Win32 API calls Pin
Simon Kearn6-Aug-04 1:07
sussSimon Kearn6-Aug-04 1:07 
GeneralRe: Good book on Win32 API calls Pin
Michael P Butler6-Aug-04 1:43
Michael P Butler6-Aug-04 1:43 
GeneralRe: Good book on Win32 API calls Pin
Duncan Edwards Jones6-Aug-04 2:11
professionalDuncan Edwards Jones6-Aug-04 2:11 
GeneralRe: Good book on Win32 API calls Pin
Nick Seng8-Aug-04 16:17
Nick Seng8-Aug-04 16:17 
GeneralMouse Enter, Mouse Leave Pin
RWWB6-Aug-04 0:48
RWWB6-Aug-04 0:48 
GeneralRe: Mouse Enter, Mouse Leave Pin
Jim Matthews6-Aug-04 2:52
Jim Matthews6-Aug-04 2:52 
Generaluse c++ dll in VB6 application Pin
sumiko6-Aug-04 0:10
sumiko6-Aug-04 0:10 
GeneralRe: use c++ dll in VB6 application Pin
Michael P Butler6-Aug-04 1:01
Michael P Butler6-Aug-04 1:01 
GeneralRe: use c++ dll in VB6 application Pin
Dave Kreskowiak6-Aug-04 3:04
mveDave Kreskowiak6-Aug-04 3:04 
Generalcommunication with I2C Adapter Pin
sumiko5-Aug-04 21:11
sumiko5-Aug-04 21:11 
GeneralRe: communication with I2C Adapter Pin
Dave Kreskowiak6-Aug-04 3:00
mveDave Kreskowiak6-Aug-04 3:00 
GeneralRe: communication with I2C Adapter Pin
sumiko10-Aug-04 20:43
sumiko10-Aug-04 20:43 
GeneralRe: communication with I2C Adapter Pin
Dave Kreskowiak11-Aug-04 1:15
mveDave Kreskowiak11-Aug-04 1:15 
GeneralWord PrintPreview to Jpeg Pin
Anonymous5-Aug-04 14:26
Anonymous5-Aug-04 14:26 
GeneralRe: Word PrintPreview to Jpeg Pin
Dave Kreskowiak6-Aug-04 2:56
mveDave Kreskowiak6-Aug-04 2:56 
GeneralList Views containing Custom objects Pin
kowplunk5-Aug-04 10:00
kowplunk5-Aug-04 10:00 
GeneralRe: List Views containing Custom objects Pin
kowplunk5-Aug-04 15:45
kowplunk5-Aug-04 15:45 
GeneralGeneric Custom Data Source For Data Grid Pin
toddmo5-Aug-04 7:47
toddmo5-Aug-04 7:47 
I want to take tabular data from a source that has no .NET provider.
So I want to create a custom datasource for my datagrid,
which will read the data from the source and feed it to the grid.
I have not seen any examples on how to do this.
I won’t know the data elements (column names) in advance, so I **can’t hard code anything**.
The columns, properties, attributes or whatever that the grid is binding to will have to be built at runtime.

If you take the custom data set examples available on the web, you would have to create a new custom datasource object for each "query", because the examples bind the datagrid to properties on a specific object!

Now, the DataAdapter object will fill a DataSet, and I made a custom DataAdapter for my source to do just that.

But it's too slow, doing twice as much work. The data is read into the DataSet, and then into the DataGrid.

I need it to go straight into the grid from the source. It's a speed requirment.

So, to distill this into it's simplist terms, I need something like this (not necessarily this) (forgive syntax errors):

Dim MyDataSource as New MyDataSource()

MyDataSource.Add("Name",New String(){"Jim","Bill","Joe"})
MyDataSource.Add("ID",New String(){"221","321","442"})
MyDataSource.Add("Rank",New String(){"1","3","2"})

grdDataGrid.DataSource = MyDataSource

The result is a grid populated with three columns - Name, ID and Rank, having 3 rows, one for each person.

Actually, the DataGrid will interrogate the datasource for each new row of data, but the columns don't come from properties or attributes, they need to come from items in a collection.

If I can learn how to do that, I can do anything with data binding.

If the solution is Reflection.Emit, I'm fine with that; I was hoping for a more direct way.






Thanks,
Todd

Questionhow can I close .exe in multiple forms? Pin
Lisana5-Aug-04 4:59
Lisana5-Aug-04 4:59 
AnswerRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 6:05
Colin Angus Mackay5-Aug-04 6:05 

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.