473,804 Members | 3,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Nub Question - Details View Visibility

Been fighting this one for a while, looking for help.

I have a simple page with a grid view and details view (just managing a
single table). The details view is primarily used for creating new records,
and the grid for display. Everything works fine unless there are no records
in the table. In this case the details view does not show, so there is no
way (for a user) to enter the first record unless I set the default mode to
Insert. I can work around by playing with the default mode, but that just
seems messy and over complicated. Is there a way to force visibility for an
empty details view? Also, is there a way to switch the details view to
insert mode without changing/toggling the default mode?

thnx
Jan 7 '08 #1
4 2150
Refer this question to windows NG, this one is ASP.NET NG

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

"randy.buchholz " wrote:
Been fighting this one for a while, looking for help.

I have a simple page with a grid view and details view (just managing a
single table). The details view is primarily used for creating new records,
and the grid for display. Everything works fine unless there are no records
in the table. In this case the details view does not show, so there is no
way (for a user) to enter the first record unless I set the default mode to
Insert. I can work around by playing with the default mode, but that just
seems messy and over complicated. Is there a way to force visibility for an
empty details view? Also, is there a way to switch the details view to
insert mode without changing/toggling the default mode?

thnx
Jan 7 '08 #2
Why? This is not a Windows quesiton. Maybe the ADO.NET group is better for
this question, but Windows?
"Michael Nemtsev" <ne*****@msn.co mwrote in message
news:B8******** *************** ***********@mic rosoft.com...
Refer this question to windows NG, this one is ASP.NET NG

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

"randy.buchholz " wrote:
>Been fighting this one for a while, looking for help.

I have a simple page with a grid view and details view (just managing a
single table). The details view is primarily used for creating new
records,
and the grid for display. Everything works fine unless there are no
records
in the table. In this case the details view does not show, so there is
no
way (for a user) to enter the first record unless I set the default mode
to
Insert. I can work around by playing with the default mode, but that
just
seems messy and over complicated. Is there a way to force visibility for
an
empty details view? Also, is there a way to switch the details view to
insert mode without changing/toggling the default mode?

thnx

Jan 8 '08 #3
Sorry, ingor my previous post

I just missed the topic, because there were on non related to

now about the subject.

I would recommed just add empty record programmaticall y, not to db but just
to binding entry (dataset or whatelse is used)

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

"Michael Nemtsev" wrote:
Refer this question to windows NG, this one is ASP.NET NG

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

"randy.buchholz " wrote:
Been fighting this one for a while, looking for help.

I have a simple page with a grid view and details view (just managing a
single table). The details view is primarily used for creating new records,
and the grid for display. Everything works fine unless there are no records
in the table. In this case the details view does not show, so there is no
way (for a user) to enter the first record unless I set the default mode to
Insert. I can work around by playing with the default mode, but that just
seems messy and over complicated. Is there a way to force visibility for an
empty details view? Also, is there a way to switch the details view to
insert mode without changing/toggling the default mode?

thnx

Jan 8 '08 #4
Thanks, I'll give that a try. I've been adding an "insert" button that
switches the default mode to insert and changes to "done" when in insert
mode. The done switches the mode back to readonly. It just seemed there
should be a cleaner way to do this and that I was missing something.
"Michael Nemtsev" <ne*****@msn.co mwrote in message
news:FD******** *************** ***********@mic rosoft.com...
Sorry, ingor my previous post

I just missed the topic, because there were on non related to

now about the subject.

I would recommed just add empty record programmaticall y, not to db but
just
to binding entry (dataset or whatelse is used)

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

Jan 8 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3946
by: lawrence | last post by:
The following function correctly makes everything invisible but then fails to turn the one chosen DIV back to visible. I imagine I'm getting the syntax of the variable wrong? I've tried this with both single quotes and no single quotes, but it doesn't work either way. What am I doing wrong? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) { document.getElementById('weblogs').style.visibility='hidden';
4
5485
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) { document.getElementById(nameOfDiv).style.visibility='visible'; document.getElementById(nameOfDiv).style.height='auto'; if (nameOfDiv != 'weblogs')
2
1879
by: Martin | last post by:
Hi, I want to create a number of ascx controls with edit and view modes. Previously I have put two panels in the ascx - one for view (with label subcontrols), and one for edit (with text box controls). I control the visibility of the panels according to what mode the ascx is in.
4
15112
by: Dilip | last post by:
hi all i m trying to make a windows explorer in my project where i need details view with some columns. but when i give this code at form load Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load_
4
1796
by: Lloyd Dupont | last post by:
The code snippets are below. I write in (C#) a Page object in a control library. I'm using this page as an HtppHandler in a website (which referes the DLL). This page contains 2 panels (one is visible when the other is not). When I postback to the page (httphandler) the viewstate is apparently incorrectly restored, that is my 2 panels get visible=false (that is only 1 should be invisible) for no reason I could understand. Any idea of...
4
2199
by: Janet | last post by:
Hi, I'm trying to use the master/detail page to display the information of staff. The master page will display some general information, while the differen detail pages will show the different kinds of staff details, like family member details, contact information, etc. Hence, this case, I'll have - Staff.master - Family.aspx
0
888
by: lieufirst | last post by:
hi all, well i got a grid view and a details view i linked the details view to the grid view so when i select a field it appers in the details view but the problem is when i surf to diffrent pages in the grid view and try selecting a row the details view respond by the same values in the first page of the grid view so help pls best regards
5
2074
by: inungh | last post by:
I have a details view on my details form and has SQL statement and paramter as following: <SelectParameters> <asp:QueryStringParameter DefaultValue="213-46-8915" Name="au_id" QueryStringField="au_id" Type="String" /> </SelectParameters>
1
4351
by: Dmitry Bond. | last post by:
Hi. I need quite a simple thing - when user changed selection in ComboBox I need to put semi-transparent RECTANGLE over the whole form with the "Connecting service..." text. Thus, user see that something in pogress and form controls are unavailable. The first idea I got was - put Rectangle + Label on a form, mark them as Visibility=Hidden, then in "cmbServer_SelectionChanged" event handler execute code like this:
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.