Ashish Rathore
Ashish Rathore

Reputation: 2696

How to marge or splite celles in datagridview

I am developing an windows form application.In that application i need to add a datagridview in side datagridview column.From bellow tutorial i made an dgvcolumn.

http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/0a63a483-5b15-40d6-afb4-8add6b4f244f

Now i need to merge multiple cells into one and want to split one cell into multiple cells. Can any one tell me how can i do this.

Upvotes: 0

Views: 1462

Answers (1)

matzone
matzone

Reputation: 5719

If you want to merge 2 columns into 1 column .. create additional column in your table and you can split column value into that two columns.

If you want to show 2 columns into 1 column .. you can do value concatenating into 1 column (you can do this in cellformatting event) then you can hide the unnecessary column .

Upvotes: 1

Related Questions