How to overlap cell value from one cell to next cell in datagridview in c#.net window application -


I want to overlap a cell value in the next cell value when we resize the column in datagridview c # .net application .

means that we want to merge two cells horizontally.

The question is - 01111 | 22222 | 3333

The answer should be - 011112222 | 3333

Thanks in advance.

If you work with WPF, you can get your data from Gridadext column to the text block and Set the following options:

  yourTextBlockInstance.TextTrimming = TextTrimming.CharacterEllipsis;  

Or just try it out:

  yourColumn.ElementStyle = new style (typefox); YourColumn.ElementStyle.Setters.Add (New Setter (Textbox, Text TrimmingProperty, TextTerming, Character Elips));  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -