Calros,
Try to add a button control to the DataGridTextBoxColumn.TextBox.Contorls
list
Here is the same code
private DataGridTextBoxColumn _Column;
DataGridTableStyle gridStyle = new DataGridTableStyle();
_Column = (DataGridTextBoxColumn)gridStyle.GridColumnStyles["Column1"];
_Column.TextBox.GotFocus += new EventHandler(Column_GotFocus);
In the Column GetFocus event handler method, add the following lines:
Button columnButton = System.Windows.Forms.Button();
_Column.TextBox.Controls.Add(columnButton);
hope this help.
Gasnic
http://gasnicdev.blogspot.com/
"Calros Lo" <ca********@hotmail.com> wrote in message
news:O3**************@TK2MSFTNGP04.phx.gbl...
Dear All:
I want to add a Button in every head of record in DataGrid , I try to
search about function
in MSDN , but the MS look like not support the function , anybody can tell
me how to or tell me about the information in some website
Thanks.