how to change a value of particular cell in a data grid
Answers were Sorted based on User's Feedback
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 |
Answer / vijay saxena
GridView1.Rows[2].Cells[1].Text = "something";
Is This Answer Correct ? | 2 Yes | 2 No |
what is master pages how to use it. plase give one example in code vice
Are c# references the same as c++ references?
What is Serialization and how do we implement (in real time scenario)
what is application domain?
what is a callback function?
Wht executescaler method is used?
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
What is delegate in c# interview questions?
What are the ways to deploy an assembly?
2 Answers Siebel Systems, Visual Soft,
Explain partial class in c#?
Can we make a Static Constructor Parameterized? Give Reason with your answer
6. If we assign a value in textbox on Page_UnLoad event, will it display?