Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Onemoguciti promenu sirine ListView kolone

[es] :: .NET :: .NET Desktop razvoj :: Onemoguciti promenu sirine ListView kolone

[ Pregleda: 1981 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

cesare
Misko Petrovic

Član broj: 55805
Poruke: 201
*.dynamic.sbb.rs.



+1 Profil

icon Onemoguciti promenu sirine ListView kolone12.12.2008. u 17:28 - pre 186 meseci
Pozdrav svima !!!

Kako spreciti korisnika da promeni sirinu SAMO prve kolone ListView kontrole ?

Unapred hvala ...
 
Odgovor na temu

Igor Gajic

Član broj: 93194
Poruke: 747
77.46.196.*



+987 Profil

icon Re: Onemoguciti promenu sirine ListView kolone13.12.2008. u 14:22 - pre 186 meseci
Dodaj ove dve metode:

Code:

        private void listView1_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
        {
            if (e.ColumnIndex == 0)
                e.Cancel = true;
        }

        private void listView1_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
        {
            if (e.ColumnIndex == 0 && listView1.Columns[0].Width != 50)
                listView1.Columns[0].Width = 50;
        }


 
Odgovor na temu

[es] :: .NET :: .NET Desktop razvoj :: Onemoguciti promenu sirine ListView kolone

[ Pregleda: 1981 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.