Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1510
New To Silverlight
posted

Hi There !

I'm coming from your Infragistics Windows Controls packages ... and was just looking at Silverlight for the web.

Is it very different from using the Windows Controls ( e.g. your Grid which is EXCELLENT! ) ?

I just want to do something very simple in the Silverlight "WebDataGrid" control ( btw, isn't that the name of the Grid-control in your Silverlight 2009 package ??? I can't see any toolbar after installing the Silverlight part, I've got the ASP.NET 2009 and Windows-Forms controls ... and toolbars for them, but no Silverlight toolbar ??? )

How would I do a simpe task like this in Silverlight ?

//_transactions is the UltraGrid Control ... in ASP.NET ... how would I do this with SILVERLIGHT?
Do I need to modify the XAML stuff or can I just do everything in C# ???

_transactions = TrackingBusiness.GetAllAKTransactionTracksBySearchCriteria(bankanumer, hofudbok, reikningsnumer, dagsFra, dagsTil);
_ugTransactions.DataSource = _transactions;
_ugTransactions.DataBind();

rgd,
EE.

  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    So, to set your data source, which has to be an IEnumerable to the xamWebGrid, is the ItemsSource property.

    this.xamWebGrid1.ItemsSource = _transAactions;

    Note, there isn't a DataBind call. It will bind immediately. 

    Hope this helps, 

    -SteveZ