PC Review


Reply
Thread Tools Rate Thread

DataGridView .NET 2.0

 
 
Christian Havel
Guest
Posts: n/a
 
      23rd Nov 2007
Hi,

is it possible in the new DataGridView to add only a fix count of rows
without that a extra row (for input of a new record) is shown automatically?

Christian
 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      23rd Nov 2007
Try setting AllowUserToAddRows to false.

Marc


 
Reply With Quote
 
Manish Bafna
Guest
Posts: n/a
 
      23rd Nov 2007
Hi,
When both DataGridView's AllowUserToAddRows and underlying
IBundingList.AllowNew(That is for example dataset1.Tables[0].Defaultview)
property are true, a user can add a new row which is marked with an
asterisk(*).Please do set them false and you will have fixed no. of rows
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Christian Havel" wrote:

> Hi,
>
> is it possible in the new DataGridView to add only a fix count of rows
> without that a extra row (for input of a new record) is shown automatically?
>
> Christian

 
Reply With Quote
 
Christian Havel
Guest
Posts: n/a
 
      23rd Nov 2007


"Manish Bafna" wrote:

> Hi,
> When both DataGridView's AllowUserToAddRows and underlying
> IBundingList.AllowNew(That is for example dataset1.Tables[0].Defaultview)
> property are true, a user can add a new row which is marked with an
> asterisk(*).Please do set them false and you will have fixed no. of rows
> --
> Hope this helps.
> Thanks and Regards.
> Manish Bafna.
> MCP and MCTS.
>
>
>
> "Christian Havel" wrote:
>
> > Hi,
> >
> > is it possible in the new DataGridView to add only a fix count of rows
> > without that a extra row (for input of a new record) is shown automatically?
> >
> > Christian

 
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
Refreshing Linq query to update second DataGridView when position in first DataGridView changes Arved Sandstrom Microsoft C# .NET 1 25th May 2008 04:06 AM
dataGridView.Rows.Count and datagridview.RowCount SePp Microsoft C# .NET 1 15th Jan 2008 10:27 AM
DataGridView (.NET 2.0 Windows Forms) Text wrapping in DataGridView Items Chris Hayes Microsoft Dot NET Framework 1 27th Aug 2006 06:07 PM
Clearing selection in DataGridView when user clicks outside the DataGridView control djyakov@gmail.com Microsoft Dot NET Framework Forms 0 16th Feb 2006 06:38 PM
Refreshing datagridview contents after a failed delete in bound datagridview Bob Microsoft VB .NET 0 5th Jan 2006 06:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:48 AM.