beta2 compared to rc1, different designer code for DataGridView columns

  • Thread starter Thread starter Ralf Jablonski
  • Start date Start date
R

Ralf Jablonski

There is a small but important difference in designer generated code for
DataGridView columns.



Beta 2:

//
// iDMaterialDataGridViewTextBoxColumn
// this.iDMaterialDataGridViewTextBoxColumn.DataPropertyName =
"ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.HeaderText = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.Name =
"iDMaterialDataGridViewTextBoxColumn";



RC1:

//
// iDMaterialDataGridViewTextBoxColumn
//

this.iDMaterialDataGridViewTextBoxColumn.DataPropertyName = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.HeaderText = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.Name = "ID_Material";
 
Sorry, the message wasn't complete on first post !

Hello,

There is a small but important difference in designer generated code for
DataGridView columns (name property) between Beta2 and RC1.
This causes a big incompatibility to existing code.
Further on, all who uses database field names (ds.ta.column.ColumnName) for
addressing columns in DataGridView will fail.


Beta 2:
//
// iDMaterialDataGridViewTextBoxColumn
//
this.iDMaterialDataGridViewTextBoxColumn.DataPropertyName = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.HeaderText = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.Name =
"iDMaterialDataGridViewTextBoxColumn";

RC1:
//
// iDMaterialDataGridViewTextBoxColumn
//
this.iDMaterialDataGridViewTextBoxColumn.DataPropertyName = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.HeaderText = "ID_Material";
this.iDMaterialDataGridViewTextBoxColumn.Name = "ID_Material";

Is this a bug in the designer code generator, or is this the real intention
of the .net team ?
Any help appreciated !
Does anyone know the reason for this change ?

Ralf Jablonski
 
Back
Top