I am using the following to dynamically add button to the cell of gridview, condition is that if the value of the fourth column is empty, then in place of empty cell add the button. But nothing is happening. I am making use of the following logic in RowDataBound event in gridview.
protected void gdvEmployee_RowDataBound(object sender, GridViewRowEventArgs e)
for( int i=0;i<=dataSet.Tables.Rows.Count;i++ )
if (dataSet.Tables.Columns == null)
Button button = new Button();
button.Text = "ADD";
DataColumn dataColumn = new dataColumn();