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

Explain the difference between .net and c#?

916


Describe the overview of clr integration.

952


What is parallel programming in c#?

905


How many types of collections are there in c#?

870


What is null in database?

863


What does firstordefault mean in c#?

935


What is difference between for and foreach in c#?

948


What are the steps for creating clr trigger

1021


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

921


Explain the difference between passing parameters by value and passing parameters by reference with an example?

908


What are nested classes in c#?

934


Differentiate between method overriding from method overloading with its functionality?

999


Can we use "this" command within a static method?

970


What do you mean by a windows process in regards to memory allocation?

942


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

910