Link to home
Start Free TrialLog in
Avatar of bmanmike39
bmanmike39

asked on

How do I change formview mode to insert, if on page load, there’s no data to bind (ASP.NET C#)

In pseudo code this is what I’m trying to do, but can’t get it to work.

Pseudo code:
If (formview1 = null)
{
formview1.mode = insertMode;
}

Can someone help me with this?

Thanks!
Avatar of CmdoProg2
CmdoProg2
Flag of United States of America image

formview1.ChangeMode(FormViewMode.Insert);
ASKER CERTIFIED SOLUTION
Avatar of CmdoProg2
CmdoProg2
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bmanmike39
bmanmike39

ASKER

Thanks!!