datagrid New Lines

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid whith a data source with my own Ilist objct, withi
IBindingList.

It's work fine but no new lines are automatic inserted, like in normal .net
framework.

What is the best soluction to work arround that?

I try that:
Dim mBindingManagerBase As BindingManagerBase
mBindingManagerBase = mDataGrid.BindingContext(m_itens)
mBindingManagerBase.AddNew()

its work but require hard suplementar code, error suject.

Any sugestion? Thanks!
 
CF data grid is read only and can not modify data source.
You have to delete, add or modify records in the data source.
Just add a "Add row" button to your form and do AddNew() in click event.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Yep, this is easy, but i want the same behavior has datagrid in windows forms.

"Ilya Tumanov [MS]" said:
CF data grid is read only and can not modify data source.
You have to delete, add or modify records in the data source.
Just add a "Add row" button to your form and do AddNew() in click event.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: datagrid New Lines
thread-index: AcVA5T924U0ilSmGT6iLkjhGkAqHpg==
X-WBNR-Posting-Host: 213.228.158.5
From: =?Utf-8?B?Sk5vcnRl?= <[email protected]>
Subject: datagrid New Lines
Date: Thu, 14 Apr 2005 04:29:40 -0700
Lines: 16
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:26960
NNTP-Posting-Host: tk2msftngxa03.phx.gbl 10.40.2.157
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I have a datagrid whith a data source with my own Ilist objct, withi
IBindingList.

It's work fine but no new lines are automatic inserted, like in normal .net
framework.

What is the best soluction to work arround that?

I try that:
Dim mBindingManagerBase As BindingManagerBase
mBindingManagerBase = mDataGrid.BindingContext(m_itens)
mBindingManagerBase.AddNew()

its work but require hard suplementar code, error suject.

Any sugestion? Thanks!
 
That is possible. You would need to extend existing data grid to allow for
editing, write your own data grid or use 3rd party products.

3rd party grids:
http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=
17&ItemID=54489&SubCategoryTypeID=0&TabMapID=99&TabID=119
http://www.resco.net/developer/smartgrid/compactframework.asp

Data grid extension to allow for editing:
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=245

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: datagrid New Lines
thread-index: AcVB3Ey+3TpzrtA+TwyA/aRZC/AfwQ==
X-WBNR-Posting-Host: 213.228.158.5
From: =?Utf-8?B?Sk5vcnRl?= <[email protected]>
References: <[email protected]>
Subject: RE: datagrid New Lines
Date: Fri, 15 Apr 2005 09:58:08 -0700
Lines: 58
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.compactframework:75624
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Yep, this is easy, but i want the same behavior has datagrid in windows forms.

"Ilya Tumanov [MS]" said:
CF data grid is read only and can not modify data source.
You have to delete, add or modify records in the data source.
Just add a "Add row" button to your form and do AddNew() in click event.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: datagrid New Lines
thread-index: AcVA5T924U0ilSmGT6iLkjhGkAqHpg==
X-WBNR-Posting-Host: 213.228.158.5
From: =?Utf-8?B?Sk5vcnRl?= <[email protected]>
Subject: datagrid New Lines
Date: Thu, 14 Apr 2005 04:29:40 -0700
Lines: 16
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.compactframework:26960
NNTP-Posting-Host: tk2msftngxa03.phx.gbl 10.40.2.157
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I have a datagrid whith a data source with my own Ilist objct, withi
IBindingList.

It's work fine but no new lines are automatic inserted, like in
normal
.net
framework.

What is the best soluction to work arround that?

I try that:
Dim mBindingManagerBase As BindingManagerBase
mBindingManagerBase = mDataGrid.BindingContext(m_itens)
mBindingManagerBase.AddNew()

its work but require hard suplementar code, error suject.

Any sugestion? Thanks!
 
Back
Top