Click here to Skip to main content
15,892,805 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: how can I close .exe in multiple forms? Pin
Lisana5-Aug-04 6:45
Lisana5-Aug-04 6:45 
GeneralRe: how can I close .exe in multiple forms? Pin
Lisana5-Aug-04 8:01
Lisana5-Aug-04 8:01 
GeneralRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 10:15
Colin Angus Mackay5-Aug-04 10:15 
GeneralRe: how can I close .exe in multiple forms? Pin
Lisana5-Aug-04 10:44
Lisana5-Aug-04 10:44 
GeneralRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 10:56
Colin Angus Mackay5-Aug-04 10:56 
GeneralRe: how can I close .exe in multiple forms? Pin
Lisana5-Aug-04 11:04
Lisana5-Aug-04 11:04 
GeneralRe: how can I close .exe in multiple forms? Pin
Colin Angus Mackay5-Aug-04 13:29
Colin Angus Mackay5-Aug-04 13:29 
Generalmore on environment variables Pin
madfiddlerchris5-Aug-04 4:18
madfiddlerchris5-Aug-04 4:18 
GeneralRe: more on environment variables Pin
Dave Kreskowiak5-Aug-04 7:29
mveDave Kreskowiak5-Aug-04 7:29 
GeneralRe: more on environment variables Pin
madfiddlerchris25-Aug-04 0:31
madfiddlerchris25-Aug-04 0:31 
GeneralRe: more on environment variables Pin
Dave Kreskowiak26-Aug-04 1:33
mveDave Kreskowiak26-Aug-04 1:33 
GeneralRe: more on environment variables Pin
madfiddlerchris26-Aug-04 2:10
madfiddlerchris26-Aug-04 2:10 
GeneralRe: more on environment variables Pin
Dave Kreskowiak27-Aug-04 17:56
mveDave Kreskowiak27-Aug-04 17:56 
GeneralRemoving Flicker in an scrolling image Pin
VVision5-Aug-04 3:48
VVision5-Aug-04 3:48 
GeneralRe: Removing Flicker in an scrolling image Pin
Gary Shel18-Aug-04 12:07
Gary Shel18-Aug-04 12:07 

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.