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

Define sealed classes in c#?

872


What debugging tools come with the .NET ssSDK?

1190


Is string a class in c#?

805


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

934


When should I use static in C#?

935


What is the difference between writeline and write in c#?

790


Write a C# program to find the Factorial of n

925


Is struct object oriented?

835


What is extended class in c#?

851


Can you put two constructor with the same structure in a class?

861


Explain streamreader/streamwriter class?

938


Can main method be final?

859


Explain About Web.config

918


what is a structure in c#

1554


What is the purpose of a constructor in c#?

827