Hi,
I am trying to create the fileds dynamically.
So as to reflect, i am setting the datasource to null, clearing the fieldlayouts, then setting datasource again.
but, now, the groupbyarea fields are missing.
if i use the fieldSortDescription and add fields...its it coming in groupbyarea, but, if i click on fields its disappearing....
do we have any other possibility to add them dynamically as well?
if so, how?
or how to set the already dymanically added fileds to be in the groupbyarea.?
thanks
I find no file attachment possiblity.
I am not able to attachfiles..
could you please tell me where is the possibility to attach files???
otherwise, drop me your email id, i will send the source.
Hi
Yes - you can use the forum function that allows you to send a private email to any poster and attach a file.
When you create the sample VS solution to duplicate the problem, please be sure to include sample data as well.
Joe
using System;
using System.Windows;
using System.Data;
using Infragistics.Windows.DataPresenter;
using Infragistics.Windows.DataPresenter.Events;
using System.ComponentModel;
using Infragistics.Windows.Editors;
{
public partial class Window1 : Window
InitializeComponent();
//mydatasource is in oracle database
dg.DataSource = ds.Tables[0].DefaultView;
}
FieldCollection fl = e.FieldLayout.Fields;
fl.Clear();
f.Name = "number";
fl.Add(f);
f.Name = "department";
dg.UpdateLayout();
<Window x:Class="wpfX.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300"
xmlns:my="clr-namespace:Infragistics.Windows.DataPresenter;assembly=Infragistics3.Wpf.DataPresenter.v7.2.Express"
>
<Grid>
<my:XamDataGrid Name="dg" FieldLayoutInitialized="initiate" />
</Window>