Re: Leere Spalten im Datagrid

From: Thorsten Blawatt (thorsten.blawatt_at_syncos.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 09:55:20 +0100

Aber wie kann ich, wenn ich die BaseCollection erbe das 2 dimensionale Array
an mein Grid binden?
Meine derzeitige implementierung ist auf der folgenden Seite beschrieben:
http://www.codeproject.com/cs/database/BindArrayGrid.asp

Schöne Grüße,
Thorsten Blawatt

"Peter Fleischer" <peter.fleischer_nospam_@gmx.de> schrieb im Newsbeitrag
news:351m83F4fabi6U1@individual.net...
> Thorsten Blawatt wrote:
> ...
> > ich binde über das IBindingList Interface ein 2 dimensionales Array
> > an ein Datagrid, was soweit auch funktioniert.
> > Nun habe ich jedoch noch das Problem, dass wenn das Array 0 Zeilen
> > enthält, die Spalten im Grid verschwinden. Ich würde jedoch gerne
> > weiterhin die Spaltenüberschriften anzeigen. Gibt es eine Möglichkeit
> > dies zu tun?
>
> Thorsten,
> ich würde das Array in eine von BaseCollection abgeleitete Klasse kapseln
> und die Eigenschaften der 2. Dimension nach außen reichen. Wenn das Array
> nicht dimensioniert ist, dann gibt die Collection-Klasse einen Count=0
> zurück und das Grid kann trotzdem aus der PropertyDescripterCollection den
> TableStyle mit den ColumnStyles erstellen und damit Spaltenüberschriften
> anzeigen.
>
> Peter
>



Relevant Pages

  • Re: Virtual grid
    ... just ditch the array & load the data directly to the grid. ... Populating the grid from a file will be somewhat slower than from an array (memory), ... > want to display it in a flexgrid control. ...
    (microsoft.public.vb.controls)
  • Re: Virtual grid
    ... do not display all the digits after the decimal point. ... Besides, if I have numbers of type double, each element of the array only ... to the grid. ...
    (microsoft.public.vb.controls)
  • Re: MSHFlexgrid displayed value
    ... data, one for my array, and one for the grid, which means using double the ... >> get the format string, and display the value to the user. ...
    (microsoft.public.vb.controls)
  • Re: How do I use a parameter/variable/string literal as an identifier?
    ... Not an actual grid, just a bunch of text boxes ... corresponding member of a boolean array (there is one array for each ... but I would rather learn a new language ...
    (comp.lang.pascal.delphi.misc)
  • Re: Zusammensetzung/Verkettung einer Variablen
    ... Thorsten, ich danke Dir für Dein Engagement. ... wenn die Stings1 bis String50 nicht als Array zur Verfügung stehen und ich ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.vb)

Loading