2013-06-29 3 views
0

(Description)DataRowView에서 가져오고 싶습니다. 다음 코드가 있습니다.GridView에서 열 값 찾기

protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) 
     { 

      if (e.Row.DataItem != null) 
      { 
       DataRowView dataRowView = ??????????? 
       string description = dataRowView["Description"] as string; 
      } 

     } 

??????????을 적절한 코드로 바꾸는 방법은 무엇입니까?

답변

0

사용 (DataRowView)e.Row.DataItem;