datagrid columns

R

roundcrisis

hi there:

Any simple way to change the datagrid columns type at run time?

winforms
I have a datagridview, I need to make some columns checkboxes and some
columns to have a button at the end of the column.
This grid is databound at run time
Thansk for the help

cheers
 
S

Som Nath Shukla

yes u can change types of datacolumn at runtime by using event datarorbound.
 
R

roundcrisis

yes u can change types of datacolumn at runtime by using event datarorbound.








- Show quoted text -

hi thanks for your answer, however i know when i want to do it
I dont know how to do it, ie wich properties to use, etc?
do i have to delete the existing data bound colum crea a
datagridviewbutton or somethign like that and then add that to the
datagridview?
seems a bit cumbersome

Cheers
 
C

Cor Ligthert[MVP]

Hi

What do you mean by this sentence?
have a datagridview, I need to make some columns checkboxes and some
columns to have a button at the end of the column.

Do you mean by instance the top textboxes, the middle part buttons, and then
checkboxes at the end rows?

By the way, is it a DataGrid or a DataGridView because you are using those
intermixed, beside the first 8 characters of its name is it almost a
complete different control?

Therefore if you want, (not only in this case however in every development
situation) an answer when developing, then be at least clear in your own
questions.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top