Skip to main content
Participating Frequently
September 1, 2013
Question

datagrid.getColumnAt(x).width not working properly ?? any clue?

  • September 1, 2013
  • 1 reply
  • 434 views

Hi,

I want to dynamically change the width of a particular column (while other other columns will have their standard width (120 in my case)) in datagird using this line:

datagrid.getColumnAt(cellClickedColumn).width=newTopBarWidth;

However, this is changing all column sizes and distributing the size non-uniformly across the columns...

any clue, how to resolve this?

i've already set datagrid.HorizontalScrollPolicy="off";

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 1, 2013

use the trace function to make sure those variables are all defined, what you expect and that code executes after those values change.

(also, make sure you're not setting some datagrid property that conflicts with that like min col size, resizable etc.)