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

What is arraylist?

1055


Where is the main method in c#?

1045


Does c# have primitives?

928


What is the difference between select and selectmany?

1010


Name the connections does microsoft sql server support?

980


Explain About DTS package

1044


What are the types of assembly available

991


How is method overriding different from overloading?

1100


Which property of the textbox cannot be changed at runtime?

1002


Explain the use of virtual, sealed, override, and abstract method?

939


What is session state in asp net c# with example?

949


Is int a class in c#?

1011


What is thread in c#?

1013


Can we assign null value to integer?

925


What is the meaning of 0 in c#?

1043