How to check which data grid view cell click
  • i have 2 data grid view both data grid contains some datas
    if i click the remove button i have to know which data grid cell is click
  • 4 Comments sorted by
  • did you mean you have 2 datagridview and button on form and at time of button click you want to know which was last focus grid?

  • you can use Gridview Enter event for this purpose

    1. Make a global string variable on form.
    2. At gridview enter event assign grid name on string variable.
    3. If you want get some data from grid so also assign data on global array or in global datarow on select row.
    4. On button Click check string variable value which grid access and check array or datarow for manipulate data.

  • thank you Mr.Aftab

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

    Optimum Creative