ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

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.

https://github.com/unvell/ReoGrid/issues

#1 2016-10-22 15:40:51

garyh
Member
Registered: 2016-10-22
Posts: 1

Right Align Cell with dropdown

What is the best way to pad a cell so that a dropdown control can be right aligned with the text showing, currently the dropdown button covers the text.  Thanks

Offline

#2 2016-10-24 01:59:47

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Right Align Cell with dropdown

You can give cell a padding at right by setting the indent:

var dropdown = new DropdownListCell("AA","BB");
var cell = sheet.Cells["B2"];
cell.Style.Indent = 3;
cell.Style.HAlign = ReoGridHorAlign.Right;
cell.Body = dropdown;

Offline

Board footer

Powered by FluxBB