PC Review


Reply
Thread Tools Rate Thread

DataGrid -- Hide Add New Row -- DataView AllowNew

 
 
ehdoty@gmail.com
Guest
Posts: n/a
 
      5th Mar 2007
I'm using a DataGrid control in a mobile application to display data
and would like to disable the automatically added "new row" at the
bottom of the grid.

I've done this with no problem on desktop applications by setting the
DataView's AllowNew property to false, but this doesn't seem to do
anything in cf applications. I have tried it on a few different
devices with different framework versions, but it doesn't seem to work
with any of them. I have tried setting AllowEdit and AllowDelete to
false, but that didn't do anything either.

Is this a bug? Or does anyone have a workaround?

Thanks,

Eric

 
Reply With Quote
 
 
 
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      6th Mar 2007
NETCF's DataGrid is read only so it does not have "automatically added new
row at the bottom".


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/...ramework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using a DataGrid control in a mobile application to display data
> and would like to disable the automatically added "new row" at the
> bottom of the grid.
>
> I've done this with no problem on desktop applications by setting the
> DataView's AllowNew property to false, but this doesn't seem to do
> anything in cf applications. I have tried it on a few different
> devices with different framework versions, but it doesn't seem to work
> with any of them. I have tried setting AllowEdit and AllowDelete to
> false, but that didn't do anything either.
>
> Is this a bug? Or does anyone have a workaround?
>
> Thanks,
>
> Eric
>



 
Reply With Quote
 
ehdoty@gmail.com
Guest
Posts: n/a
 
      6th Mar 2007
Ah... for some reason I was thinking the extra gray space at the
bottom was a new row (it's been a while since I've looked at
datagrids).

Well, then what I would like to do, if possible, is get rid of this
empty space at the bottom of the datagrid that appears when the last
row is selected. When I have enough items to show a vertical
scrollbar, when I scroll down and and select the last row, it scrolls
down approximately the height of one more row and shows empty space
below it. I guess this is to show that it is the last row in the grid?
Is there any way around this? I would prefer to have it just show the
last item at the bottom of the grid and not show this empty space.

I've thought about overriding some of the drawing methods, but I'm not
sure where to go with that.

If this is not possible, I can live with it, but I was just wondering.

Thanks.


On Mar 5, 6:42 pm, "Ilya Tumanov [MS]" <ilya...@online.microsoft.com>
wrote:
> NETCF's DataGrid is read only so it does not have "automatically added new
> row at the bottom".
>
> --
> Best regards,
>
> Ilya
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> *** Want to find answers instantly? Here's how... ***
>
> 1. Go tohttp://groups-beta.google.com/group/microsoft.public.dotnet.framework...
> 2. Type your question in the text box near "Search this group" button.
> 3. Hit "Search this group" button.
> 4. Read answer(s).
>
> <ehd...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > I'm using a DataGrid control in a mobile application to display data
> > and would like to disable the automatically added "new row" at the
> > bottom of the grid.

>
> > I've done this with no problem on desktop applications by setting the
> > DataView's AllowNew property to false, but this doesn't seem to do
> > anything in cf applications. I have tried it on a few different
> > devices with different framework versions, but it doesn't seem to work
> > with any of them. I have tried setting AllowEdit and AllowDelete to
> > false, but that didn't do anything either.

>
> > Is this a bug? Or does anyone have a workaround?

>
> > Thanks,

>
> > Eric



 
Reply With Quote
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      7th Mar 2007
I'd say you should ignore it.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/...ramework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Ah... for some reason I was thinking the extra gray space at the
> bottom was a new row (it's been a while since I've looked at
> datagrids).
>
> Well, then what I would like to do, if possible, is get rid of this
> empty space at the bottom of the datagrid that appears when the last
> row is selected. When I have enough items to show a vertical
> scrollbar, when I scroll down and and select the last row, it scrolls
> down approximately the height of one more row and shows empty space
> below it. I guess this is to show that it is the last row in the grid?
> Is there any way around this? I would prefer to have it just show the
> last item at the bottom of the grid and not show this empty space.
>
> I've thought about overriding some of the drawing methods, but I'm not
> sure where to go with that.
>
> If this is not possible, I can live with it, but I was just wondering.
>
> Thanks.
>
>
> On Mar 5, 6:42 pm, "Ilya Tumanov [MS]" <ilya...@online.microsoft.com>
> wrote:
>> NETCF's DataGrid is read only so it does not have "automatically added
>> new
>> row at the bottom".
>>
>> --
>> Best regards,
>>
>> Ilya
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> *** Want to find answers instantly? Here's how... ***
>>
>> 1. Go
>> tohttp://groups-beta.google.com/group/microsoft.public.dotnet.framework...
>> 2. Type your question in the text box near "Search this group" button.
>> 3. Hit "Search this group" button.
>> 4. Read answer(s).
>>
>> <ehd...@gmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>> > I'm using a DataGrid control in a mobile application to display data
>> > and would like to disable the automatically added "new row" at the
>> > bottom of the grid.

>>
>> > I've done this with no problem on desktop applications by setting the
>> > DataView's AllowNew property to false, but this doesn't seem to do
>> > anything in cf applications. I have tried it on a few different
>> > devices with different framework versions, but it doesn't seem to work
>> > with any of them. I have tried setting AllowEdit and AllowDelete to
>> > false, but that didn't do anything either.

>>
>> > Is this a bug? Or does anyone have a workaround?

>>
>> > Thanks,

>>
>> > Eric

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid AllowNew = False Doug Bell Microsoft VB .NET 3 8th Dec 2004 04:51 AM
How to hide a column in DataGrid ( or DataView)??? Alex Microsoft ADO .NET 3 10th Nov 2004 04:48 PM
DataView AllowNew =?Utf-8?B?c3ViVA==?= Microsoft ADO .NET 5 30th Aug 2004 05:41 PM
DataGrid on DataViewManager, no AllowNew? Walt Borders Microsoft Dot NET Framework Forms 1 29th Jun 2004 05:38 PM
Child Table DataView.AllowNew problem Juergen Bronn Microsoft Dot NET Framework Forms 0 23rd Jul 2003 08:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 PM.