Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 1:08 AM EST
just make a statement like this
yourarrayname[i]= dataGridView1.Rows[i].Cells[3].Value;
mark the answer if it helps you
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 12:21 AM EST
radhika ganta60 reputationPosted Feb 25, 2010, 12:42 AM EST
radhika ganta60 reputationPosted Feb 25, 2010, 12:43 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 12:50 AM EST
radhika ganta60 reputationPosted Feb 25, 2010, 12:56 AM EST
the entire procedure has been done in datagrid after binding ....
if any further clarifications feel free to ask me...
radhika ganta60 reputationPosted Feb 25, 2010, 12:59 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 1:09 AM EST
radhika ganta60 reputationPosted Feb 25, 2010, 1:12 AM EST
radhika ganta60 reputationPosted Feb 25, 2010, 1:13 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 1:23 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 4:07 AM EST
check it out,let me know if it satisfies your requirements
change the connection string and querystring and execute the program
click the button you will be getting values from database
click on the checkboxe,you will be getting mobileno in the label
this is the database table i have taken
grab is the table name
name age mob
kiran 23 07
kumar 23 08
if you get any errors mail me your project files
mark the answer if it helps you
radhika ganta60 reputationPosted Feb 25, 2010, 10:56 PM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 11:02 PM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 11:06 PM EST
radhika ganta60 reputationPosted Feb 25, 2010, 11:06 PM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 25, 2010, 11:36 PM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 12:25 AM EST
mark the answer if it helps you
radhika ganta60 reputationPosted Feb 26, 2010, 12:44 AM EST
am getting this execption in this line....
//this.dataGridView2.Rows.Add(dr);
radhika ganta60 reputationPosted Feb 26, 2010, 1:01 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 1:02 AM EST
radhika ganta60 reputationPosted Feb 26, 2010, 1:05 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 1:05 AM EST
radhika ganta60 reputationPosted Feb 26, 2010, 1:06 AM EST
radhika ganta60 reputationPosted Feb 26, 2010, 1:12 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 1:15 AM EST
radhika ganta60 reputationPosted Feb 26, 2010, 1:23 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 1:32 AM EST
radhika ganta60 reputationPosted Feb 26, 2010, 1:43 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 3:48 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 26, 2010, 3:22 PM EST
check it out
mark the answer if it helps you
radhika ganta60 reputationPosted Feb 26, 2010, 11:34 PM EST
"Value was either too large or too small for an Int32"
in this line...
arr[i] = Convert.ToInt32(dataGridView1.Rows[i].Cells[3].Value.ToString());
kiran kumarRank #3,110 · 461 reputationPosted Feb 27, 2010, 12:23 AM EST
better store the mobile no as string itself
this will resolve your problem radhika
radhika ganta60 reputationPosted Feb 27, 2010, 12:29 AM EST
like
Object reference not set to an instance of an object.
in this line
arr[i] = dataGridView1.Rows[i].Cells[3].Value.ToString();
kiran kumarRank #3,110 · 461 reputationPosted Feb 27, 2010, 12:35 AM EST
kiran kumarRank #3,110 · 461 reputationPosted Feb 27, 2010, 12:41 AM EST
radhika ganta60 reputationPosted Feb 27, 2010, 12:59 AM EST