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

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


Please Help Members By Posting Answers For Below Questions

How do you serialize in c#?

851


How do I link two windows forms in c#?

927


How to rotate an Image in C#?

1101


Are multiple data types stored in System.Array?

1183


What's the difference between a static method and a non static method c#?

999


What are the differences between a class and a struct?

1088


What are boxing and unboxing?

912


What is delegates and events?

924


How to add a readonly property in c#.net

933


Difference between value and reference type. What are value types and reference types?

992


Define sealed classes in c#?

917


Is versioning applicable to private assemblies?

982


Why do we need interfaces in c#?

893


What is the difference between “out” and “ref” parameters in c#?

993


What is static classes in c#?

1004