|
-
Jul 19th, 2007, 10:48 PM
#1
Thread Starter
Hyperactive Member
[2005] Cell's Value of an Unbound DataGridView
I had been searching the net as well as MSDN about this, but I don't know if it's just me that can't figure it out.
Quite simple one may think, on my DataGridView are Column1 and Column2 columns.On a certain event(say Button_Click) of a button, a new row would be added and Column1 and Column2 would have certain values.By the way, both columns as a TextBoxColumn.
On a ListView point of view, this could be accomplish by merely ListView.Items.Add
Hope someone could lead me to the right solution.Thanks.
-
Jul 19th, 2007, 11:16 PM
#2
Re: [2005] Cell's Value of an Unbound DataGridView
You just add to the grid's Rows collection. The Add method is overloaded so you can either specify the values for the cells or else get the index of the row and then set the values.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|