Ciao a tutti
ho fatto un datagrid con autogeneration column true.
Come faccio a nascondere una colonna?
grazie
Ciao a tutti
ho fatto un datagrid con autogeneration column true.
Come faccio a nascondere una colonna?
grazie
victor
----------------------
in rete si trova questo: sull'evento onAutogeneratingColumn
codice:private void DataGrid_OnAutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (e.PropertyName == "YourProperty") { e.Column.Visibility = Visibility.Collapsed; } }
W la Ferari effetrenavenave!
il computer è un somaro veloce! (neanche tanto ndr)
sicuro che e' un DataGrid ?
framework 1.1 ?
press play on tape
-----
MP3 Listing
https://sourceforge.net/projects/mp3-listing
File Listing
https://sourceforge.net/projects/file-listing-2-0/
si sicuro grazie
victor
----------------------
adesso ho un altro problema....
vi rimando al post
https://forum.html.it/forum/showthre...readid=2969151
victor
----------------------
codice:protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ID_DGrid.Columns[X].Visible = false; } // X = indice della colonna (che parte da 0) }
Ultima modifica di djciko; 12-11-2018 a 19:02
press play on tape
-----
MP3 Listing
https://sourceforge.net/projects/mp3-listing
File Listing
https://sourceforge.net/projects/file-listing-2-0/
ID_DGrid è l'ID del Datagrid, ovviamente
non ho provato, vedi se va anche con AutoGeneration=True dovrebbe....
press play on tape
-----
MP3 Listing
https://sourceforge.net/projects/mp3-listing
File Listing
https://sourceforge.net/projects/file-listing-2-0/