Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.. friends, I have a DatagridView in my project, in this I have add a column button type. Now the problem is that I want to give text to the button "Test".

Is anybody help me to solve this problem.

Thanks & regards

Parveen Rathi
Posted
Comments
Sergey Alexandrovich Kryukov 6-Mar-12 0:49am    
System.Windows.Forms? Add a tag: "Forms".
--SA
Perić Željko 6-Mar-12 3:00am    

1 solution

Hello friend...

please try this...


First of all set Text property of you DataGridViewButtonColumn, in your case you need to set it to 'Test'

Second thing set UseColumnTextForButtonValue property of your DataGridViewButtonColumn to true.

now try to run your code.

i hope it will solve your problem..
 
Share this answer
 

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