What component for a table of strings?

So, I want to display a table of strings, and let the user edit them. What component suits best here I looked at the DataGridView, but it seems either too complicated or I didn't find a simple enough yet workable example

I quess I am asking either a suitable component, how to use an array of text edits or how to use the DataGridView to achieve the equivalent of

Component[x,y]="string at x,y position";
SomeString= Component[x,y];


Thanks again!


Answer this question

What component for a table of strings?

  • Jo0815

    Wow, this is even easier than I tought it would be! Thank you for your help. I find myself likng this Visual C# more and more every day.

  • flamingwoodchuck

    hi,

    plz don't mix between data holder's and data displayer's,

    array's , dataTables , ArrayLists, xmlDoc all those are dataholders

    to display data from dataholder in the shape of table you use datagridview

    simply you use it like this

    DataGridview1.DataSource = MyDataSet, Or MyTable as you wish

    and you done , try to change anything in the datagrid you will find it changed it in your table

    if you want to expose a a text in particular cell in the datagridview you can reach to it like this

    MyDataGridView.Rows[5].Cells[2].Value

    5 is the row index , 2 is the column index

    hope this helps



  • What component for a table of strings?