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 arraylist?
Where is the main method in c#?
Does c# have primitives?
What is the difference between select and selectmany?
Name the connections does microsoft sql server support?
Explain About DTS package
What are the types of assembly available
How is method overriding different from overloading?
Which property of the textbox cannot be changed at runtime?
Explain the use of virtual, sealed, override, and abstract method?
What is session state in asp net c# with example?
Is int a class in c#?
What is thread in c#?
Can we assign null value to integer?
What is the meaning of 0 in c#?