J
Johnny Jörgensen
This is probably a stupid question, but I've never used the ASP.NET GridView
control before, so I hope you'll bear with me and give me a clue.
I've got a Gridview on my webform to show the contents of a database table.
It's configured to show both "edit" "delete" and "insert" options in the
commandfield.
That's all well and fine, the edit and delete options work as they're
supposed to, but I simply don't understand the insert row functionality.
First of all: When I start out, my table is empty. That means that instead
of rows, the EmptyDataText is show, and thus no "insert" button is shown in
the grid. How do I go about inserting the first row?
Second: When my table DOES contain data, all three options are shown, but
the Insert option doesn't do anything. Are there other properties I have to
set or other considerations I have to make than just set the CommandFields
ShowInsertButton property to true?
Cheers,
Johnny J.
control before, so I hope you'll bear with me and give me a clue.
I've got a Gridview on my webform to show the contents of a database table.
It's configured to show both "edit" "delete" and "insert" options in the
commandfield.
That's all well and fine, the edit and delete options work as they're
supposed to, but I simply don't understand the insert row functionality.
First of all: When I start out, my table is empty. That means that instead
of rows, the EmptyDataText is show, and thus no "insert" button is shown in
the grid. How do I go about inserting the first row?
Second: When my table DOES contain data, all three options are shown, but
the Insert option doesn't do anything. Are there other properties I have to
set or other considerations I have to make than just set the CommandFields
ShowInsertButton property to true?
Cheers,
Johnny J.