Hi Team,
I want to display progress percentage in a datagridview column as shown in d attached images.
Also, i want to get the splitcontainer control to dock a collapsed panel on d side (right or left or up or down) also as shown in the attached images.
Please help me out if these are possible.
Hi Team, my client requested that the items be displayed in the middleLeft as alignment for the datagridview columns but i realised the progress bar gets distorted when i set the defaultCellStyle alignment to middleLeft as can be seen in the top datagridview vs the bottom grid in the attached image.
What could be wrong pls.
Hi
For customize the datagridcells, the recommended approaching is use html with div into it using CellFormating event like this
e.Value = $"<div style='height:100%'><div style='background-color:yellow;width:{value}%;height:100%'></div>" +
$"<div style='width:100%;left:0px;top:0px;position:absolute;text-align:center;top:50%;transform:translateY(-50%);'>{value}%</div></div>";
it’s all plain html and it requires a good amount of trial and error
I attach a runnable sample with also showing the use of splitContainer control for the other question
HTH
Nicholas
We are checking this and back you to comment about it
thanks for your feedback
Please login first to submit.