Hi!
I have the next code
DataTable tabla = new DataTable();
DataSet SetRegsCon = new DataSet();
ResultsetFields campos = new ResultsetFields(4);
campos.DefineField(view.UsuCodigo, 0, "UsuCodigo");
campos.DefineField(view.UsuNombre, 1, "UsuNombre");
campos.DefineField(view.Asignado, 2, "Asignado", String.Empty, AggregateFunction.Max);
campos.DefineField(view.TarCodigo, 3, "TarCodigo", String.Empty, AggregateFunction.Max);
IGroupByCollection coleGroup = new GroupByCollection();
coleGroup.Add(campos["UsuCodigo"]);
coleGroup.Add(campos["UsuNombre"]);
IRelationPredicateBucket relaciones = new RelationPredicateBucket();
relaciones.PredicateExpression.Add(this.Filter(pObjCriteria).PredicateExpression);
ISortExpression ordenador = new SortExpression();
this.objAdapter.FetchTypedList(campos, tabla, relaciones, 0, ordenador, false, coleGroup);
return tabla;
When I do the this.objAdapter.FetchTypedList() instruction, tabla has this header columns:
"UsuCodigo", "UsuNombre", "Column1", "TarCodigo", I don't understand why the column header of the field Asignado changes.
The fields are: Varchar, Varchar, Int32, Int32.
Somebody please can help me?