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 |
Can you store multiple data types in System.Array?
20 Answers Satyam, Siebel Systems,
Why we need get set property in c#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
How do you encapsulate in c#?
Is nullable type c#?
How many types of constructor are there in c#?
what is reference parameter? what is out parameters? what is difference these two?
9 Answers Bally Technologies, SPIC, Wipro,
Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, Masking.Please tell the answer and it is useful for me.
What is interface inheritance?
Explain the difference between boxing and unboxing.
Why are c# strings immutable?
What is disco?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)