470,596 Members | 1,460 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

adding values to a Datagrid

Hi All,

I wanted to ask how i can add values from textboxes etc
into a specific coloumn and row of a datagrid.

I.e does the datagrid have coordinates that i can
refernce when i want to add values.
e.g if i want to add a value to the second row and second
column do i write coordinates such as.. (2,2)

Nov 22 '05 #1
4 1201

If your datagrid is databound to a dataSet then you can
alter the dataset's information and refresh the datagrid
and its presentation of the data should be refreshed.

In what context or how is the data in the datagrid driven?
Nov 22 '05 #2
Hi,

Does it need to be bound to a datatable to add values to
a datagrid?? Can i not use it like a listview where i
simply state the coloun or row index??

-----Original Message-----

If your datagrid is databound to a dataSet then you can
alter the dataset's information and refresh the datagrid
and its presentation of the data should be refreshed.

In what context or how is the data in the datagrid driven?.

Nov 22 '05 #3
Cor
Hi Tonya
Can be a short answer, Yes, No
Cor

Does it need to be bound to a datatable to add values to
a datagrid?? Can i not use it like a listview where i
simply state the coloun or row index??

Nov 22 '05 #4
Here is a way for you to do what you want ( I think :) ):

http://msdn.microsoft.com/library/de.../en-us/cpref/h
tml/frlrfsystemwindowsformsdatagridclassitemtopic1.asp

Enjoy.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tonya | last post: by
6 posts views Thread by Robert Schuldenfrei | last post: by
3 posts views Thread by Jim Heavey | last post: by
6 posts views Thread by Bart Schelkens | last post: by
3 posts views Thread by AMD Desktop | last post: by
2 posts views Thread by saleek | last post: by
5 posts views Thread by Aaron Ackerman | last post: by
1 post views Thread by AriJayaraman | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.