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 assembly c#?
Is class reference type c#?
What is difference between const and static in c#?
how to stored and retrive video in Sql server using asp.net c#......?
What is difference between throw and throws in c#?
What is difference between events and delegates?
What is jit (just in time)?
How long can loop recorders stay in?
Explain concurrency with aop?
Is the following code legal?
How we convert private assembly into public assembly?
What basic steps are needed to display a simple report in crystal?
What are the types in c#?
What does int32 mean in c#?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?