The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I can only get word wrap to work for the current cell in a datagrid. How can you get it to wordwrap whether a cell is selected or not? I''ve seen the question posted on a few forums - but never an answer.
Thanks!
DJDaniel Jebaraj Syncfusion Team February 25, 2005 12:17 AM UTC
Test. Please ignore.
>I can only get word wrap to work for the current cell in a datagrid. How can you get it to wordwrap whether a cell is selected or not? I''ve seen the question posted on a few forums - but never an answer.
>
>Thanks!
DJDaniel Jebaraj Syncfusion Team February 25, 2005 12:23 AM UTC
[Posting for Stefan]
Hi Sigurd,
you can loop through all the columns of the related table when you access the ChildTableDescriptor of the RelationDesriptor, e.g. in the ForeignKeyReference example:
this.gridGroupingControl1.DataSource = table;
mainTd.Name = "ForeignKeyReference";
mainTd.Columns.LoadDefault();
foreach (RelationDescriptor rd in mainTd.Relations)
{
if (rd.RelationKind == RelationKind.ForeignKeyReference)
{
foreach (FieldDescriptor fd in rd.ChildTableDescriptor.Fields)
{
string name = countriesRd.Name + "_" + fd.Name;
GridColumnDescriptor cd = mainTd.Columns.FindByMappingName(name);
if (cd != null)
Console.WriteLine(cd.Name);
}
}
}
Stefan