Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Created Issue: DataForm AutoGeneratingField issue [10033]

$
0
0
i defined a class in the domainservice and set all display name property,then i hope to get the displayname from the AutoGeneratingField function ,however dataform AutoGeneratingField function not work,it cant return the Field display name ,just return null value.While the datagrid work, in the datagrid AutoGenerating can get the display name ,is there a bug in the dataform ,how can i get the displayname?need ur help .thank you very much.
code as below:
private void df_AutoGeneratingField(object sender, DataFormAutoGeneratingFieldEventArgs e)
{
if (e.PropertyName == "age")
{
TextBox t = new TextBox();
t.Text = "20";
DataField d = new DataField
{
Label = e.Field.Label,
Content = t,
IsReadOnly=true
};
e.Field = d;
}
}
however,Label = e.Field.Label, is null

Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>