G
Guest
what is wrong with that code
i only want to replace any Null Value in the DataGrid to a space value
it tells me object not set to an instance
this.DG_U=new System.Windows.Forms.DataGrid();
this.DG_U.TableStyles.AddRange(new
System.Windows.Forms.DataGridTableStyle[] {
this.DG_UTableStyle});
this.DG_UTableStyle.GridColumnStyles.AddRange(new
System.Windows.Forms.DataGridColumnStyle[] {
this.DG_UTextBoxColumn});
the error appears at this point
DG_U.DataSource =DS_U.Tables[0];
DG_U.Size = this.tabPage_U.Size;
this.DG_UTableStyle = new System.Windows.Forms.DataGridTableStyle();
this.DG_UTextBoxColumn = new System.Windows.Forms.DataGridTextBoxColumn();
// DGFaculities
this.DG_UTextBoxColumn.NullText =" ";
this.DG_UTableStyle.DataGrid = this.DG_U;
when i try to make instance of
this.DG_UColumnStyle = new System.Windows.Forms.DataGridColumnStyle();
it tells me it's an abstract class & cant creat instance of it
how to make ittttttttttt
Regards
i only want to replace any Null Value in the DataGrid to a space value
it tells me object not set to an instance
this.DG_U=new System.Windows.Forms.DataGrid();
this.DG_U.TableStyles.AddRange(new
System.Windows.Forms.DataGridTableStyle[] {
this.DG_UTableStyle});
this.DG_UTableStyle.GridColumnStyles.AddRange(new
System.Windows.Forms.DataGridColumnStyle[] {
this.DG_UTextBoxColumn});
the error appears at this point
DG_U.DataSource =DS_U.Tables[0];
DG_U.Size = this.tabPage_U.Size;
this.DG_UTableStyle = new System.Windows.Forms.DataGridTableStyle();
this.DG_UTextBoxColumn = new System.Windows.Forms.DataGridTextBoxColumn();
// DGFaculities
this.DG_UTextBoxColumn.NullText =" ";
this.DG_UTableStyle.DataGrid = this.DG_U;
when i try to make instance of
this.DG_UColumnStyle = new System.Windows.Forms.DataGridColumnStyle();
it tells me it's an abstract class & cant creat instance of it
how to make ittttttttttt
Regards