T
tJ
Hi
I have a DataGridView on a form, and the last column is of type
DataGridViewButtonColumn.
How do I get the button text ("Edit") of this column (colEditButton) to
display on load of the form? At the moment, my button is blank until I
edit a cell in the same row :-( Here are the column's current
properties:
//
// colEditButton
//
this.colEditButton.AutoSizeMode =
System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.colEditButton.FillWeight = 32.91695F;
this.colEditButton.FlatStyle =
System.Windows.Forms.FlatStyle.System;
this.colEditButton.HeaderText = "Edit Lookup Table";
this.colEditButton.Name = "colEditButton";
this.colEditButton.Resizable =
System.Windows.Forms.DataGridViewTriState.False;
this.colEditButton.Text = "Edit";
this.colEditButton.ToolTipText = "Edit Lookup Table";
this.colEditButton.UseColumnTextForButtonValue = true;
I'm using VS 2005 Beta 2
Thanks!
I have a DataGridView on a form, and the last column is of type
DataGridViewButtonColumn.
How do I get the button text ("Edit") of this column (colEditButton) to
display on load of the form? At the moment, my button is blank until I
edit a cell in the same row :-( Here are the column's current
properties:
//
// colEditButton
//
this.colEditButton.AutoSizeMode =
System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.colEditButton.FillWeight = 32.91695F;
this.colEditButton.FlatStyle =
System.Windows.Forms.FlatStyle.System;
this.colEditButton.HeaderText = "Edit Lookup Table";
this.colEditButton.Name = "colEditButton";
this.colEditButton.Resizable =
System.Windows.Forms.DataGridViewTriState.False;
this.colEditButton.Text = "Edit";
this.colEditButton.ToolTipText = "Edit Lookup Table";
this.colEditButton.UseColumnTextForButtonValue = true;
I'm using VS 2005 Beta 2
Thanks!