Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working in Windows application using c# language. In my application, I have a data grid with each column header as a button.I want to disable the button when it is clicked once, so that the user gets to know that column has been processed already and does not click it again, until the next click.

how can i do this, please help me..
thanks in advance..
Posted
Comments
Sergey Alexandrovich Kryukov 26-Oct-13 0:26am    
Please tag the UI library/framework or application type you are using. If you say "Button", the question is: which one? Full type name, please.
—SA
vineeth raju 26-Oct-13 0:34am    
I want to give buttons in the place of header column of data grid view. I want to disable the full column when i clicked the button once. And it will be enabled the next click.
Sergey Alexandrovich Kryukov 26-Oct-13 1:29am    
Please at least read the comment you are replying to...
—SA

1 solution

Set the Enabled property[^] to false.
 
Share this answer
 
Comments
vineeth raju 28-Oct-13 0:57am    
But how can i put button into datagrid header?
Richard MacCutchan 28-Oct-13 4:37am    
I don't know, according to your question you already have that. I would guess that you just use some properties of the column header.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900