How to get value of a cell in row data bound event? and how to check if a cell is empty?
问题 I'm using sqldatasource and a GridView . I want to get the value of a cell from the GridView in the RowDataBound event?, Because I can't use e.RowIndex . How to check in the updatng event if a cell is empty? I used if != null , but it didn't worked so I need to check if it's empty. thanks 回答1: In the RowdataBound Event, you can get the value of a cell from gridview using the following Code: [ 1 ]//getting username rfom particular row string servicename = Convert.ToString(DataBinder.Eval(e.Row