Autor Beitrag
Realnub
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

Win XP
VS 2005
BeitragVerfasst: Di 13.05.08 16:23 
Hallo, ich habe wiedermal ein Problem und keine Lösung dazu finden können.
Wie kann ich die Höhe eines DataGridView an dessen Inhalt anpassen, dass es nur so hoch wie nötig wird?
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Di 13.05.08 17:50 
Das musst Du manuell ausrechnen:
ausblenden Quelltext
1:
Height = Anzahl der Zeilen mal Zeilenhöhe + Kopfhöhe + Anzahl der Zwischenlinien (je 1 Pixel) + Spielraum für falsche Aufteilungen.					

Jürgen
Realnub Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

Win XP
VS 2005
BeitragVerfasst: Do 15.05.08 09:39 
ok, danke
dachte mir schon so etwas
geli
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Mo 16.06.08 11:06 
Titel: DataGridView Row multiline
hallo!
wie kann man die höhe der rows variable einstellen? ich möchte die höhe abhängig vom inhalt der cell vergrößern.
hat jemand eine idee? ich habe bisjetzt nicht funktionierendes gefunden.

greets geli