How to add custom column in datagridview-C#-winforms?

DataGridView1.Columns. Add("myColumn", "My Column"); Update after comment: You can add the text in the button as a second parameter to add: dataGridView1.Rows. Add(red"depar", "Button Text").

Thanks,I want to add button in second column ,But in while loop how to put button(unbounded)+text(bounded) – pixelerator Mar 22 at 16:10 Updated my answer – Bas B Mar 22 at 16:22 -Thanks,Now I am having two column and both are text column. I want second column "Button" . The ADD method only taking all the values as text,I want one parameter as text and one as a button :) – pixelerator Mar 22 at 16:34 - I am creating both the column manually by writing.

But your way is good. I tried it and worked thanks . But I yet having question in mind .

We cant create and set type's of columns in programme manually. Because it gives flexibility. Once again thanks for your effort :) – pixelerator Mar 22 at 16:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions