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
Here is ....
dg = xamdatagrid...
fieldlayout.clear() or Fieldlayouts.fields.clear()....both are eliminating the groupbyarea.
public void initialize(){
DataSet ds = GetDataSet("customer"); dg.DataSource = null;// dg.FieldLayouts.Clear(); dg.DataSource = ds.Tables[0].DefaultView; dg.UpdateLayout();}
void inits(object sender, FieldLayoutInitializedEventArgs e) { e.FieldLayout.Settings.AutoGenerateFields = false; FieldCollection fl = e.FieldLayout.Fields; Field f; fl.Clear(); f= new Field(); f.Name="firstname"; f.Label="name"; fl.Add(f); f = new Field(); f.Name = "details"; f.Label = "details"; fl.Add(f); dg.UpdateLayout();
}
Hi I am not able to send the solution here.
can i send you email?
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
I find no file attachment possiblity.