Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Nebula Grid: How can we resize grid columns programmatically to expand to show full content
Nebula Grid: How can we resize grid columns programmatically to expand to show full content [message #1352777] Tue, 13 May 2014 12:23 Go to next message
Dhiresh Patel  is currently offline Dhiresh Patel
Messages: 79
Registered: July 2009
Member
In nebula grid we can expand a column to show full content by double clicking on the edge of the cell. However I would to do the same thing programmatically i.e. once I populate the grid with data, I would like to programmatically expand this one column to show its full contents. Is there a way to do it?

Thanks,

Dhiresh
Re: Nebula Grid: How can we resize grid columns programmatically to expand to show full content [message #1353343 is a reply to message #1352777] Tue, 13 May 2014 17:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5257
Registered: July 2009
Senior Member
GridColumn.pack()

Tom

On 13.05.14 18:24, Dhiresh Patel wrote:
> In nebula grid we can expand a column to show full content by double
> clicking on the edge of the cell. However I would to do the same thing
> programmatically i.e. once I populate the grid with data, I would like
> to programmatically expand this one column to show its full contents. Is
> there a way to do it?
>
> Thanks,
>
> Dhiresh
Re: Nebula Grid: How can we resize grid columns programmatically to expand to show full content [message #1354394 is a reply to message #1353343] Wed, 14 May 2014 04:34 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 275
Registered: July 2009
Senior Member

You could also set the WRAP mode on the column so that it stretches multiple lines.

Cheers,

Wim
Previous Topic:missing feature org.eclipse.nebula.widgets.formattedtext
Next Topic:Fwd: Re: display problem of TreeMapper
Goto Forum:
  


Current Time: Wed Jul 30 13:33:47 EDT 2014

Powered by FUDForum. Page generated in 0.02425 seconds