how to change a value of particular cell in a data grid
Answer Posted / amit kumar sharma
private void dataGridView1_CellClick(object sender,
DataGridViewCellEventArgs e)
{
//Edit cell value
this.dataGridView1[e.ColumnIndex,
e.RowIndex].Value="Any Thing";
//find column name of cell
string strCulumnName = dataGridView1
[e.ColumnIndex, e.RowIndex].OwningColumn.Name;
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a .exe extension files? How is it similar to .dll extension files?
What are extender provider components? Explain how to use an extender provider in the project.
How can you use abstract class and interface?
Explain the accessibility modifier protected internal?
What is the use of delegates in c#?
What is the difference between ref & out parameters in c#?
Explain About Web.config
What are events in C#?
Why do we use void in c#?
What is type checking in c#?
How to use delegates with events?
Why do we need a singleton class?
Is c# a keyword?
Write the difference between TypeOf and GetType?
What is difference between === and ==?