Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var ds = RemotingFactory.Create<IUIResourceController>().GetInputsByOperationId(_operationSuggestionLookup.ID);
  2. var rows = ds.Tables[0].Select("InputSourceTypeID = 1");
  3. var dataSet = new FunctionInputDataSet();
  4. foreach(FunctionInputDataSet.FunctionInputRow row in rows)
  5. {
  6.      var prop = (UserInputProperties)Serializer.DeserializeFromXml(row.Properties, typeof (UserInputProperties));
  7.      if (prop != null && prop.AllowExternalInput)
  8.            dataSet.FunctionInput.AddFunctionInputRow(row);
  9. }
  10. _ultraGrid.DataSource = dataSet;