title image


Smiley Re: Datagrid --> Spalten speeren ??
habe es so gemacht:



private void Form1_Load(object sender, System.EventArgs e)

{

data_11.Clear();

oleDbDataAdapter1.Fill(data_11);







// Add it to the datagrid's TableStyles collection

DataGridTableStyle ts = new DataGridTableStyle();

ts.MappingName = dataGrid2.DataMember;

dataGrid2.TableStyles.Add(ts);



// read only

dataGrid2.TableStyles[0].GridColumnStyles[0].ReadOnly= true;

dataGrid2.TableStyles[0].GridColumnStyles[1].ReadOnly= true;





//keine letzte leere zeile anzeigen

CurrencyManager cm = (CurrencyManager)this.BindingContext[dataGrid2.DataSource, dataGrid2.DataMember];

((DataView)cm.List).AllowNew = false;

}

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: