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
Define sealed classes in c#?
What debugging tools come with the .NET ssSDK?
Is string a class in c#?
Difference between value and reference type. What are value types and reference types?
When should I use static in C#?
What is the difference between writeline and write in c#?
Write a C# program to find the Factorial of n
Is struct object oriented?
What is extended class in c#?
Can you put two constructor with the same structure in a class?
Explain streamreader/streamwriter class?
Can main method be final?
Explain About Web.config
what is a structure in c#
What is the purpose of a constructor in c#?