created a list , now need to show it in My gui Window ..Please help

Here is my code - http://pastebin.com/rHEYQ044

I am creating a list on the line 71,72,73.

Now i need to show the values in the text field [in a grid manner] inside void DoMainWindow(int windowID){

Please help me , guide me how to go about it

Whats happening in the code and Why am i doing this ?

  1. The data is coming from mysql table
  2. I am assigning data to a list
    MyDataItem item = list*;*
    item.contact_name=phoneBookResult*;
    3. Now i want to show the list in a window in the textfield -
    something like this, but this line is not working [inside the for loop]- item.contact_name=GUI.TextField(new Rect(Screen.width25/100, Screen.height10/100i, Screen.width30/100, Screen.height10/100), item.contact_name*);*

    The 3 errors i am facing on this line
    a. The best overloaded method match for UnityEngine.GUI.TextField(UnityEngine.Rect, string)' has some invalid arguments*__</em></em></em></em> <em><em><em><em>__*b. Argument #2’ cannot convert char' expression to type string’
    c. The read only property or indexer `string.this[int]’ cannot be assigned to
    and want to place a button beside the textfields, clicking which i can remove that row from list
    4. I can modify the textfields and save the data back in mysql table
    this is what i want to do - Imgur: The magic of the Internet , and should be able to edit the field aswell
    This is what i want and i am stuck at showing the list result in the window.

You’re accessing the characters of a contact name rather than the list of members you were likely planning to access. You’ll probably want to change your loop to something like this:

for(int i=0;i<list.Count;i++)
{
    list[i].contact_name=GUI.TextField(new Rect(Screen.width*25/100, Screen.height*10/100*i, Screen.width*30/100, Screen.height*10/100), list[i].contact_name);