473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

FormView in Edit mode

I'm using a FormView but I can not put it in edit mode. The formview is connected to a sqldatasource whose query receives a parameter from other form (using a querystring).
Can someone help me?
Thanks in advance.
Rosa Matias
Oct 1 '10 #1
3 3904
Frinavale
9,735 Expert Mod 8TB
When developing applications in .NET, and you have a problem understanding how to use a control, the best resource to refer to is the MSDN Library. This library contains documentation on all of the .NET controls and even articles on best-practices and patterns that comes in handy.

Check out the article on the FormView control for information on how to use it.

-Frinny
Oct 1 '10 #2
aallen
1
No one ever put a solution to this. I've read the article referred to in the response and it never mentions "How" to set the EditMode it merely mentions it can be set. In what code block is it placed?

I would like to do what this person is asking about and I believe I would need to pass the mode as a parameter? and then perhaps set the mode using code behind? but I can't seem to make it work.
Jan 15 '13 #3
Frinavale
9,735 Expert Mod 8TB
Use the FormView's ChangeMode method to switch the FormView control to the specified data-entry mode.

For example:
Expand|Select|Wrap|Line Numbers
  1. myFormView.ChangeMode(FormViewMode.Edit)
-Frinny
Jan 15 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3"...
6
by: Tamir Khason | last post by:
How to prevent the selected cell from being editable (visual) at DataGrid? Once click on cell (even readonly) there are cursor inside it and select text appears. How to prevent it Thankx
1
by: sck10 | last post by:
Hello, I am trying to change a value when a user goes into edit mode on a DetailsView control. I am trying to use the following, but can not figure out how to get to the bound field...
2
by: Luqman | last post by:
How can I put GridView and DetailView control to Edit Mode with one click of button ? I don't want to show built-in Edit Buttons of above controls. Best Regards, Luqman
2
by: P. Yanzick | last post by:
Hello, I am creating an edit template for a FormView control, changing one of the textboxes to a dropdown box. The dropdown will be populated from a simple table with the primary key, and a...
4
by: wandii | last post by:
Hi, I have a datagrid attached to a dataset. It displays the records fine however, when I edit one of the cells it does not change the edit icon to the pencil icon on the left of the row I just...
1
by: phamer | last post by:
Hello. My switchbaord contains 2 options: add a record and edit a record. So, of course, if I click add a record, the first form opens in add mode; if I click edit, the first form opens in edit...
1
by: Mark Stafford | last post by:
I am attempting to use a DetailsView control to view some data where the fields returned by the database are determined at runtime. I create the TemplateFields on the fly using a class that...
1
by: =?Utf-8?B?QW5u?= | last post by:
Hello, I am using ASP.net 2.0 and I am using templates in a formview control. After I insert a new record, I want the formview Edit template to display with the NEW record that I just inserted....
1
by: Chris | last post by:
I have a treeview control, which I use to select a row in a table which will be used to populate a formview. Depending on what node is selected in the treeview I want the formview to be either in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.