I am implementing a datagridview and a button on it using below code:
$Column2 = $TR = New-Object System.Windows.Forms.DataGridViewButtonColumn
$Column2.width = 150
$Column2.name = "App Data"
$Column2.FlatStyle = 'Standard'
$DataGridView1.Columns.Add($Column2)
$Column2.UseColumnTextForButtonValue = $true
$Column2.AutoSizeMode = 'DisplayedCells'
$TR.Text = "Change Data"
When I click another button (not the one implemented on grid), I need to change the text of button implemented on grid to something. For example, from "Change Data" to "Delete Data".
And also how do I implement Click event for button implemented on the grid.
Thanks heaps for your help! Nratawa