Вывод данных из переменной в DataGridView

Есть код, в котором переменная принимает в себя значения. Можно ли отобразить эти данные напрямую в DataGridView либо же нужно выгрузить данные в xml и потом только в datagridview? И как это можно реализовать? введите сюда описание изображения

namespace biblioteka
{
public class Class1
{
    private static Session theSession;
    private static UI theUi;
    private static UFSession theUFSession;
    public static Form1 theProgram;
    public static bool isDisposeCalled;
    public static void Main(string[] args)
    {


        theSession = Session.GetSession();
        theUi = UI.GetUI();
        theUFSession = UFSession.GetUFSession();
        isDisposeCalled = false;
        var workPart = theSession.Parts.Work;
        Point3d helpPoint;
        TaggedObject thread;
        Selection select = UI.GetUI().SelectionManager;

        var responce = select.SelectTaggedObject("Укажите резьбуу", "Выбор резьбы", Selection.SelectionScope.WorkPart, false, new Selection.SelectionType[] { Selection.SelectionType.Features }, out thread, out helpPoint);

        NXOpen.Features.Feature featThread = thread as NXOpen.Features.Feature;
        string ftype = featThread.FeatureType;


        if (responce != Selection.Response.Cancel && featThread != null)
        {
            UFModl.SymbThreadData threadData = new UFModl.SymbThreadData();
            theUFSession.Modl.AskSymbThreadParms(featThread.Tag, out threadData);


        }


        Form1 NF = new Form1(helpPoint);
        NF.Show();

    }
   

Ответы (0 шт):