Connecting Tech Pros Worldwide Forums | Help | Site Map

Addin a row in datagridview

Newbie
 
Join Date: Jul 2006
Posts: 12
#1: Jul 18 '06
Hi,
I'm writting a programe using C# that reads data from file and then store these data in array and display these data from the array to the datagridview. this the frist part. the second part is
I would like to get help how can add row in datagridview so, when user determine new row and usually this new row the last one and start enters data in the datagridview control and for example clicks in a button these new row will store directely to the main file.

pls I need ur help

sashi's Avatar
Expert
 
Join Date: Jun 2006
Location: Seremban, Malaysia
Posts: 1,630
#2: Jul 18 '06

re: Addin a row in datagridview


Hi Nasser,

i have attached a link that i found on MSDN.. hope it helps.. check it out..

http://forums.microsoft.com/MSDN/Sho...09453&SiteID=1
Newbie
 
Join Date: Jul 2006
Posts: 12
#3: Jul 18 '06

re: Addin a row in datagridview


Hi sashi,
Thank u for ur email and I've done the first part reading from file and put the data in an array then put them in the datagridview but what I could not do is write data in a new row in the datagridview and then when for example click on a save button Iwould like these data to transfer directly to the file.

Please I need help as sson as possible

kind regards,
Nasser
Newbie
 
Join Date: Jul 2006
Posts: 12
#4: Jul 19 '06

re: Addin a row in datagridview


Dear All

I would like the code that allow me to write data in a new row in the datagridview and then when for example click on a save button Iwould like these data to transfer directly to the file.

Please I was wondring if u could help me as sson as possible

kind regards,
Nasser
Reply