Hi Kiran,
Issue 1: Resizing the columns in a grid.
You need to set the width of the columns in the OnResizeColumns override method. Below is a code snippet.
protected override void OnResizingColumns(GridResizingColumnsEventArgs e)
{
//Double Click actually shows the hidden cloumns. So cancel it.
if (e.Reason == GridResizeCellsReason.DoubleClick && !this.UseProportionateColResizing)
{
if (this.ViewLayout.VisibleCellsRange.IsEmpty)
this.ColWidths.ResizeToFit(GridRangeInfo.Cols(1, this.ColCount), GridResizeToFitOptions.IncludeHeaders);
else
this.ColWidths.ResizeToFit(this.ViewLayout.VisibleCellsRange, GridResizeToFitOptions.IncludeHeaders);
e.Cancel = true;
}
else if (this.UseProportionateColResizing && e.Reason == GridResizeCellsReason.HitTest)
e.Cancel = true;
else if (!this.UseProportionateColResizing && e.Reason == GridResizeCellsReason.MouseUp)
{
this.ColWidths[e.Columns.Left] = e.Width;
}
else
base.OnResizingColumns(e);
}
Issue 1: Setting the Trimming property.
You can try setting this property in a OnQueryCellInfo method and let me know if this helps.
Please refer to the attached sample for implementation.
ModifiedPOC2.zipBest regards,
Haneef