Здравствуйте, Махмуд, Вы писали:
М>Ну так вот, row.DataItem у меня почему-то null.
ну вопервых GridViewRow бывают разные, нам нужны только те, у которых
e.Row.RowType == DataControlRowType.DataRow;
во вторых тут есть бага

сам тока нашел
читаем мcдн, св-во GridViewRow.DataItem
Use the DataItem property to access the properties of the underlying data object to which the GridViewRow object is bound. The DataItem property is only available during and
after the
RowDataBound event of a GridView control.
смотрим код рефлетором
метод GridView.CreateRow
if (dataBind)
{
row1.DataBind();
this.OnRowDataBound(args1);
row1.DataItem = null;
}

... << RSDN@Home 1.1.4 stable SR1 rev. 568>>