Jithesh
2014-07-04T07:24:03Z
Hi
How to Autofit the last column in the iGrid?

like "AutofitLastColumn" method for grid in infragistics igrid..
Jithesh
2014-07-11T06:30:06Z
Why nobody is replying this post? 😞
Igor/10Tec
2014-07-14T15:20:38Z
Nobody has replied because it's a forum that does not guarantee you'll get an answer.

As for your problem, the requested functionality is performed with the help of the AutoResizeCols property.

The help topic for this property contains an example of what you need:

for(int myColIndex = 0; myColIndex < iGrid1.Cols.Count-1; myColIndex++)
  iGrid1.Cols[myColIndex].AllowSizing = false;
iGrid1.Cols[iGrid1.Cols.Count-1].AllowSizing = true;

iGrid1.AutoResizeCols = true;

But I'd recommend that you also read the description of the AutoResizeCols property to understand how this system works in iGrid.