I know this is a newbie question, but I'm just getting started with the esDataSource and can't figure out where the "Insert" occurs?
My code is basically a clone of your forum example: I'm using Sql 2000 so paging / sorting are turned off
I've wired the esCreateEntity and esSelect (also esPostSelect),,,grid is filling, editing works, but how do i "Insert" a new record?
It doesnt look like your using the "ShowInsertButton" in your sample code? So how does:
e.PrimaryKeys == Nothing get a hit?
Im referring to your sample code as in:
protected void esDataSrc_esCreateEntity(object sender, esDataSourceCreateEntityEventArgs e)
{
Employees entity = new Employees();
if (e.PrimaryKeys == null)
entity.AddNew();
else
entity.LoadByPrimaryKey((int)e.PrimaryKeys[0]);
// Assign the Entity
e.Entity = entity;
}
Thanks for all the great work you guys have done...