You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
Hi,
Im trying to set cell padding, where cell padding value is entered by user in a textbox, named textBox1:
sheet.SetRangeStyle(ReoGridRange.EntireRange, new ReoGridStyleObject()
{
Flag = PlainStyleFlag.Padding,
Padding = new Padding(int.Parse(textBox1.Text)),
});
textbox has text and its not empty, but its not setting cell padding of my reogrid,
Can anyone help?
Offline
Padding now only work for cell body. In most cases the cell text will overflow the cell boundary, for example:
The Padding.Right does not work. If only set the Padding.Left, it is same as Cell.Style.Indent. Did you tried the preview download? it contains the indent feature.
Offline
Hi Jing,
Yes I have used the preview. It is working for indent and the outline exception is gone too, thank you. When it will be available for stable use?
Also I cant set the following style for column 0, im not sure if it happened after this preview download?
var Range = new ReoGridRange(0 , 1 , 1 , 1);
sheet.SetRangeStyle(Range , new ReoGridRangeStyle()
{
Flag = PlainStyleFlag.FontStyleUnderline | PlainStyleFlag.TextColor,
Underline = true,
TextColor = System.Drawing.Color.Blue,
});
The above code, sets the style for 2nd column (index =1), but not for the first one (index = 0)
any help, please?
Offline
Also there is no way to set padding for cells of grid now? Actually with spacing/presentation/underlines/colors, my data gets its meaning and hierarchy
Regards
Last edited by AB Zaman (2015-03-27 12:46:25)
Offline
Your code works for me. Did you set any styles on column 0 before this code?
Yes, padding not work for cell text, it works for cell body (Another feature: http://reogrid.net/document/custom-cell).
Offline
Yes my bad, underline and color is working.
Please help me with another matter here, consider following image:
Here I have an outline on last three rows, now in my code I'm adding a row under 6th row, and then adding outline on that added row, (basically another outline with in the same outline).
The above is my code with InsertRow, but AddOutline part commented. Is it the same exception?
Thank you so much, for quick and useful replies.
Offline
Sorry, could you provide some code to describe this problem? 3-5 lines would be fine, I want to confirm the order of method call.
Offline
Please continue reply on this topic: http://forum.reogrid.net/viewtopic.php?id=109
Offline
Pages: 1
Topic closed