Posted 16 May 2018, 2:27 pm EST
Hello!
Sorry for the delay. Here is the solution to your problem : In Form’s Load event, you need to resize rows once.
c1TrueDBGrid1.AllowRowSizing = RowSizingEnum.IndividualRows;
foreach (C1DisplayColumn col in c1TrueDBGrid1.Splits[0].DisplayColumns)
col.Style.Wrap = TextWrapping.Wrap;
for(int r = 0; r < c1TrueDBGrid1.Splits[0].Rows.Count; r++)
{
c1TrueDBGrid1.Splits[0].Rows[r].AutoSize();
}
And then, in AfterColEdit event of grid, you can use AutoSize method, as given below.
private void C1TrueDBGrid1_AfterColEdit(object sender, ColEventArgs e)
{
c1TrueDBGrid1.Splits[0].Rows[c1TrueDBGrid1.Row].AutoSize();
}
Best regards,
Meenakshi