473,396 Members | 2,020 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,396 software developers and data experts.

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 2127
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.comwrote in message
news:B8**********************************@microsof t.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 programmatically, 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.comwrote in message
news:FD**********************************@microsof t.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 programmatically, 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
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...
4
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) {...
2
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...
4
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...
4
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...
4
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...
0
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...
5
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"...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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...
0
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,...

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.