Click to See Complete Forum and Search --> : rename column of DataGrid


Zolix2010
November 10th, 2004, 06:01 PM
hi,
i got a DataGrid that use datasource of ArrayList.

when i want update the data after changing ,
i need to do this code for getting the value of certain column

TextBox text = (TextBox)e.Item.Cells[2].Controls[3];
string value = text.Text;


it's not good enough for me bcuz this code is not flexible or elegant.
so i want to change the name of the columns so i could get the value by column's name and not by Index.

do u know how can i do so?
Avi.