Nub Question - Details View Visibility

R

randy.buchholz

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
 
S

Scott M.

Why? This is not a Windows quesiton. Maybe the ADO.NET group is better for
this question, but Windows?


Michael Nemtsev said:
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 said:
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
 
M

Michael Nemtsev

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 said:
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 said:
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
 
R

randy.buchholz

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top