BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
//To resize the column based on length of cell value
this.gridGroupingControl1.AllowProportionalColumnSizing = false;
this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.AutoSize = true;
this.gridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.WrapText = false;
|
this.gridGroupingControl1.QueryCellStyleInfo += GridGroupingControl1_QueryCellStyleInfo;
private void GridGroupingControl1_QueryCellStyleInfo(object sender,GridTableCellStyleInfoEventArgs e)
{
e.Style.AutoSize = true;
e.Style.WrapText = false;
}
|
//To resize the column based on length of cell value
this.gridGroupingControl1.TableModel.ColWidths.ResizeToFit(GridRangeInfo.Table());
|
Thanks, its help me and is the solution to what I was looking for, only one cuestion more
Through designer is possible to change this property ?
this.gridGroupingControl1.AllowProportionalColumnSizing = false;