Click here to Skip to main content
15,918,193 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi developers,

i created a gridview, in that i retrived the student names and besids that i put a check box,

when ever i check the check box and click on the Update button,

the value of student class will be incremented by one.

example if a student is in IX class that student should be Promoted to X class.

Thank u.

Best Regards,

Thiru
Posted

questions is not clear,
if you want to update the value in grid view cell you can do it in grid view update event handler.

select the grid view and choose the properties, you can see the events of grid view in second tab.
 
Share this answer
 
is your problem solved ??? if not so, try to update the data source under your update event of grid then once gain bind it.
 
Share this answer
 
i have some similar concern, but at this level i want to display excell 5000 records in grid view and on click a button, these values to save in sql server database.
this is the display code

private void button3_Click(object sender, EventArgs e)
{
DialogResult dr = this.openFileDialog1.ShowDialog();
if (dr == System.Windows.Forms.DialogResult.OK)
{
string connectionString = String.Format(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source={0};Extended Properties=""Excel
8.0;HDR=YES;IMEX=1;""", openFileDialog1.FileName);
string query = String.Format("select * from [{0}$]", "Sheet1");
OleDbDataAdapter dataAdapter = new OleDbDataAdapter(query, connectionString);
DataSet dataSet = new DataSet();
dataAdapter.Fill(dataSet);
dataGridView1.DataSource = dataSet.Tables[0];
}
}


i need the save code
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900