ASP.NET GridView Access Cell By Name
<p>I want to access a certain cell in a row of a datagrid by name instead of index just in case the columns get reordered(Which has happened already)</p>

<p>MyBox.Text = ListAllCategories.Rows[ListAllCategories.SelectedIndex].Cells[1].Text;</p>

<p>Instead of using "Cells[1]", I want to do something like "Cells["Name"]"(Which didn't work) or something similar where "Name" is the name of the column inside the GridView.</p>

<p>Can anyone tell me how to do this? </p>
