Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: peoman on September 11, 2006, 07:59 AM

Title: [VB.NET] Datagridview add new row
Post by: peoman on September 11, 2006, 07:59 AM
Newbie problem

I'm trying to create a new row to a datagridview.
I want to get the values of the cells from textboxes.
Everything i have tried, i always get this message:
"Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound."

Any help???

I also want to be able search in the datagrid.
How can i "select a row" when the index of a cell is equal or contains letters from a textbox????

(I hope you can understand my english)
Title: Re: [VB.NET] Datagridview add new row
Post by: rabbit on September 11, 2006, 08:27 AM
...There's a .Net forum.
Title: Re: [VB.NET] Datagridview add new row
Post by: peoman on September 11, 2006, 09:34 AM
Quote from: rabbit on September 11, 2006, 08:27 AM
...There's a .Net forum.

QuoteRules:

1) No flaming and/or blatant stupidity.
2) If you post anything that is related to another language in this forum, I am going to recommend that you be banned.  See the Visual Basic?  That means Visual Basic only.
3) If you post anything that is VB or VB .NET specific, prepend your topic's subject with [VB], [VB .NET] respectively.
4) If you call it Visual Basics or abbreviate it as "vB", I will have you killed.
Title: Re: [VB.NET] Datagridview add new row
Post by: rabbit on September 11, 2006, 10:42 AM
Yeah, quote me the rules, because I haven't been here for many years nor do I have an intimite knowledge of how these forums ACTUALLY work nor do I know any of the people here.  Yeah.  Thanks.  I really needed to see the rules.  Also, the .Net forum wasn't created after the rules of this forum were posted, or anything like that.
Title: Re: [VB.NET] Datagridview add new row
Post by: peoman on September 11, 2006, 01:29 PM
Sorry. I didn't mean to offend you. :-\
I only wanted you to see that I have read the rules and i have created the topic inside the correct forum.
If the rules are wrong, tell the administrator to correct them. It's not my fault.
Anyway I am going to create a new topic in .NET forum.
If the administrator wants to delete this topic, be my guest.
Title: Re: [VB.NET] Datagridview add new row
Post by: rabbit on September 11, 2006, 01:32 PM
The admins exploded several years ago.