• Welcome to Valhalla Legends Archive.
 

[VB.NET] Datagridview add new row

Started by peoman, September 11, 2006, 07:59 AM

Previous topic - Next topic

peoman

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)

rabbit

Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

peoman

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.

rabbit

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.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

peoman

#4
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.

rabbit

The admins exploded several years ago.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.