TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Akash Pal
NA
1
708
How to save the changed value of DataGrid cell into a string
Jun 16 2015 1:00 AM
private void label5_Click(object sender, EventArgs e)
{
int rowIndex = dataGridView1.CurrentCell.RowIndex;
int columnIndex = dataGridView1.CurrentCell.ColumnIndex;
string ColumnName = dataGridView1.Columns[columnIndex].Name;
string NewValue = dataGridView1.Rows[rowIndex].Cells[columnIndex].FormattedValue.ToString();
MessageBox.Show(dataGridView1.CurrentCell.Value.ToString());
global.EditBook(columnIndex, rowIndex, ColumnName, NewValue);
DataTable dt = global.filldata();
dataGridView1.DataSource=dt;
pictureBox7.Visible = true;
MessageBox.Show(dataGridView1.Columns[columnIndex].Name.ToString());
}
Reply
Answers (
0
)
how to pass value to the function which is in another fuctio
I wanna to learn Compleate MVC and Angular JS on asp.net?