Autor Beitrag
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Sa 09.08.08 17:32 
Morgen,

kann man StringGrid Cell Beschriftungen auch so einstellen das sie nicht mehr geändert werden können ?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
  StringGrid1.Cells[0,0]:='Noten';
  StringGrid1.Cells[0,1]:='Deutsch';
  StringGrid1.Cells[0,2]:='Englisch';
  StringGrid1.Cells[0,3]:='IT';
  StringGrid1.Cells[0,4]:='Mathe';
  StringGrid1.Cells[0,5]:='Chemie';
  StringGrid1.Cells[0,6]:='Sport';
  StringGrid1.Cells[0,7]:='Ethik';
  StringGrid1.Cells[0,8]:='BWL';
  StringGrid1.Cells[1,0]:='K1';
  StringGrid1.Cells[2,0]:='K2';
  StringGrid1.Cells[3,0]:='K3';
  StringGrid1.Cells[4,0]:='K4';
  StringGrid1.Cells[5,0]:='K5';
  StringGrid1.Cells[6,0]:='K6';
  StringGrid1.Cells[7,0]:='Mündl.';
  StringGrid1.Cells[8,0]:='Mappe';
  StringGrid1.Cells[9,0]:='Endnote';


Weil man in meinem Notenprogramm mit MouseToCell eine Zelle auswählen kann, wo die Noten hineingeschrieben wird, und da gehören leider auch diese Zellen dazu.


Mfg,

GericasS

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 09.08.08 17:53 
ja, indem du die properties fixedrows und fixedcolumns entspechend setzt.