Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to change a value of particular cell in a data grid

Answers were Sorted based on User's Feedback



how to change a value of particular cell in a data grid..

Answer / 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

how to change a value of particular cell in a data grid..

Answer / ajaujan

e.Item.Cells[i].Text="Something"

Is This Answer Correct ?    0 Yes 0 No

how to change a value of particular cell in a data grid..

Answer / vijay saxena

GridView1.Rows[2].Cells[1].Text = "something";

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Sharp Interview Questions

can you allow a class to be inherited, but prevent the method from being over-ridden?

0 Answers   Siebel Systems,


What is a three-tier application.

0 Answers   Siebel,


What does readonly mean in c#?

0 Answers  


What is wrong with the sample program below?

0 Answers  


Can we inherit a private class in chsarp? how? explain(with code) ?

4 Answers   Techno Labs,


Why can?t you specify the accessibility modifier for methods inside the interface?

2 Answers  


What is an expression in c#?

0 Answers  


Can you prevent a class from being instantiated?

0 Answers  


What is argument in c#?

0 Answers  


Which is faster list or dictionary in c#?

0 Answers  


Explain the difference between a namespace and assembly name in .net?

0 Answers  


What does console mean c#?

0 Answers  


Categories