Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi anybody
I have 2 problem deed everybode help.
I have a gridview and when I click on a cell on gridview so This cell will change It's style from textbox to combobox or checkbox.

second problem is on gridview we can merge the cells the same as excel?
if possible how to do it?
Posted
Comments
thatraja 14-Dec-10 5:30am    
confirm the control? It's datagrid or gridview? In VB6, gridview doesn't exist.

You can't change the cell control type because what is displayed is controled by the DataGridViewColumn. In order to do what you want, you'd have to implement your own custom DataGridViewColumn class (NOT easy!)

The DGV also does not support merging cells. You'd have to use a third party grid control that supports this.
 
Share this answer
 
Comments
ngthtra 15-Dec-10 4:21am    
thanks .I understood this problem now.
If change the columntype at the cell level. So when I click on cell os column how to I change type of column of that cell from textbox to combobox and add data to this combobox( example when I click on cell, It's column appear with dada as follow: Red, Blue, Yellow and blank in combobox) using VB 6
You cannot think about the DGV at the cell level. You cannot change the columntype at the cell level. You must think by columns. You can only make changes to the columntype at the column level. I already told you what you have to do.
 
Share this answer
 
Comments
ngthtra 15-Dec-10 21:22pm    
thanks .I understood this problem now.
If change the columntype at the cell level. So when I click on cell os column how to I change type of column of that cell from textbox to combobox and add data to this combobox( example when I click on cell, It's column appear with dada as follow: Red, Blue, Yellow and blank in combobox)

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