Friends,

I Using DatagridviewButtonColumn, I am Able to Changing The Text of That Button, on Run Time But Not Able to Using Enable/Disable Option,

I Mean I Have a Button With The Text "Allot" When User Click on This The Text Becomes "Pause" But At The Same time This Button Should Be Disable, Please Suggest Me How...

Please show your code. If you can change the button text then you should be able to set enable/disable

btnMyButton.Text = "Pause"
btnMyButton.Enabled = False

Thanks For Reply,
My Code is

If Com_DetailDataGridView.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = Allot Then
Com_DetailDataGridView.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = Pause
ElseIf Com_DetailDataGridView.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = Pause Then
Com_DetailDataGridView.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = Allot
End If

I had to look for it, but click here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.