Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralConnecting to a running instance of an embedded webBrowser control Pin
rwelte5-May-05 5:14
rwelte5-May-05 5:14 
GeneralShowing legacy data in data grid Pin
dirk helmet5-May-05 5:07
sussdirk helmet5-May-05 5:07 
GeneralRe: Showing legacy data in data grid Pin
Anonymous5-May-05 5:16
Anonymous5-May-05 5:16 
GeneralRe: Showing legacy data in data grid Pin
dirk helmet5-May-05 5:41
sussdirk helmet5-May-05 5:41 
GeneralRe: Showing legacy data in data grid Pin
keith maddox5-May-05 6:58
keith maddox5-May-05 6:58 
GeneralRe: Showing legacy data in data grid Pin
dirkhelmet5-May-05 7:43
dirkhelmet5-May-05 7:43 
GeneralRe: Showing legacy data in data grid Pin
keith maddox5-May-05 9:10
keith maddox5-May-05 9:10 
GeneralRe: Showing legacy data in data grid Pin
dirk helmet5-May-05 9:26
sussdirk helmet5-May-05 9:26 
Wow - I really do appreciate your help here!

Ok - you seem to be saying that we have an array of row structs - and the IList can simply give access to a row struct. This is not the case (well, it actually is the case in the internal implementation of our object, but not via the external API that I am using). Via our API, the individual cell values from our table are accessed by specifying column and row to the api - one cell at a time - There is no actual row struct that is externally available - I probably missated this in a previous post. It's more of an array of arrays - that is, an array of rows. In any event, the row arrays do not hold row and column numbers as you indicate (0,0,somedate). Rather, the rows hold an array of void*, each one representing a value for a cell. For example, a 4x4 table looks like this:

row 0: ptr, ptr, ptr, ptr
row 1: ptr, ptr, ptr, ptr
row 2: ptr, ptr, ptr, ptr
row 3: ptr, ptr, ptr, ptr

where the offset into the row array is simply the column number.

So we access a cell by using TABLE_GetValue(table, col, row); There actually is no access for a row since there is no row object or struct concept externally. I guess I've taken a long time saying that this is really like a simple 2-dimensional array with an cell-level access API around it.

Even if I were to return some sort of Row representation by the Item() method, how would the DataGrid know what to do with that row - how to get the values for the individual cells in a row. Would it be expecting the row to also implement IList - so that it essentially would be getting an IList containing a set of ILists?

thanks
Rich


GeneralRe: Showing legacy data in data grid Pin
keith maddox5-May-05 10:08
keith maddox5-May-05 10:08 
GeneralRe: Showing legacy data in data grid Pin
keith maddox5-May-05 12:40
keith maddox5-May-05 12:40 
GeneralControl access from other classes Pin
DJNokturnal5-May-05 3:43
DJNokturnal5-May-05 3:43 
GeneralRe: Control access from other classes Pin
MoustafaS5-May-05 4:27
MoustafaS5-May-05 4:27 
GeneralRe: Control access from other classes Pin
DJNokturnal6-May-05 5:53
DJNokturnal6-May-05 5:53 
Generaluse one C# exe method to another C# Project Pin
joy_priyank5-May-05 1:46
joy_priyank5-May-05 1:46 
GeneralRe: use one C# exe method to another C# Project Pin
MoustafaS5-May-05 1:58
MoustafaS5-May-05 1:58 
GeneralRe: use one C# exe method to another C# Project Pin
joy_priyank5-May-05 2:28
joy_priyank5-May-05 2:28 
GeneralRe: use one C# exe method to another C# Project Pin
ChesterPoindexter5-May-05 3:34
professionalChesterPoindexter5-May-05 3:34 
GeneralRe: use one C# exe method to another C# Project Pin
MoustafaS5-May-05 4:18
MoustafaS5-May-05 4:18 
GeneralMoving huge amounts of Data over Local/Lan Pin
Sharpoverride5-May-05 1:33
Sharpoverride5-May-05 1:33 
GeneralRe: Moving huge amounts of Data over Local/Lan Pin
keith maddox5-May-05 5:58
keith maddox5-May-05 5:58 
GeneralRe: Moving huge amounts of Data over Local/Lan Pin
Sharpoverride6-May-05 1:50
Sharpoverride6-May-05 1:50 
GeneralVS .NET Server Explorer Add-in Pin
rsdouglas5-May-05 1:22
rsdouglas5-May-05 1:22 
GeneralDefault values for properties Pin
WujekSamoZlo4-May-05 23:35
WujekSamoZlo4-May-05 23:35 
GeneralRe: Default values for properties Pin
Stefan Troschuetz5-May-05 0:34
Stefan Troschuetz5-May-05 0:34 
GeneralRe: Default values for properties Pin
Maqsood Ahmed5-May-05 0:35
Maqsood Ahmed5-May-05 0:35 

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.