I dont know if this will help since i dont have any experience with the
DetailsView control. In a DataGrid/DataSet/DataView scenario when the page
loads I check if the DataSet is empty and if it is I use
DataTable.Rows.Add() and DataTable.NewRow() to automatically add a blank
entry and then Set DataGrid.EditItemIndex = 0 to start editing the first
row.
Hope that helps,
Dave
"VictorReinhart" <vi**************@phs.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi,
I need to add a row in a WebForm, using VS 2005 and C sharp, using a
SQLDataSource.
If the table or SQLDataSource is empty, and you use a DetailsView
Control to let the user add a new row, the "New" hyperlink is
invisible. Therefore, the user can't add a row. So, what can I do?
Thank you
VictorReinhart