We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ResizeToFit depracated?

Thread ID:





13433 Apr 28,2004 01:30 PM UTC Apr 29,2004 10:34 AM UTC WinForms 2
Tags: GridControl
Asked On April 28, 2004 01:30 PM UTC

Just curious why when I hover over the ResizeToFit method, it shows that it has been marked as deprecated? Is there a new way to do this? Here is my code: this.grid.Model.RowHeights.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.IncludeHeaders | GridResizeToFitOptions.NoShrinkSize) ; Thanks, Daws

Administrator [Syncfusion]
Replied On April 28, 2004 01:43 PM UTC

It is not deprecated. Only the overloaded method that accepts boolean flags has been marked that way pretty much since version 1.0 - we wanted to delete it but never did. This one is ok: public abstract bool ResizeToFit(GridRangeInfo range, GridResizeToFitOptions options); This one is marked obsolete: [Obsolete("Use GridResizeToFitOptions instead")] public bool ResizeToFit(GridRangeInfo range, bool resizeCovered, bool noShrink) Stefan

Replied On April 29, 2004 10:34 AM UTC

Thanks, I guess MS has an intellisense bug then, cause I''m using one of the non-deprecated overloads. Thanks, Daws


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon