Friday, March 11, 2011

DataGridViewRadioButton Column


Hi,
One of the major requirements of my project is to have an column inside the datagridview which will allow the user to select the primary account holder in a team of employees listed.
I have searched through for several different possibilities of having a radio button inside a column cell. I wonder why Microsoft has never designed such a column which can show a radio button.

So, I decided to search on google and found few techies have suggesting to use checkbox control instead of a radio button.
I have even found a datagridradiobuttoncolumn on a microsoft site but i don't see it worth because it had shown me a way where each column can have more than one radio button but does not support grouping of the whole datagridview.

So after trying out for quiet sometime i came up with my own solution for this problem. I hope this will workout for better.

There are no big logics and no big references of dlls. Just a plain code and few images in the resources. Does my job.

Check my code and i hope its helpful to you people and let me know if you find any bugs. You can email me at reubenraj@gmail.com

Here is the link for the project. Its developed on .net framework 3.5 VS2008.

Regards,
Reuben.
Developer