G
Guest
Need some help. I am using datagridview in 2005 with C#. I am calling a web
service and filling the datagridview with the data returned. This all works
fine. Next step is to take a value from one of the cells in the datagridview
and return it back with some other values in an object for another webservice
call. The problem is I dont know how to access a cell in a datagridview to do
this. Im pretty sure you have to do it thru the binding source for the
datagridview but I dont know how. I have the datagridview setup for no
multiselect so only one row can be selected and I know I will probably need
to write something to return which row is selected in the gridview and send
it to the bindingsource to tell it and return the value in the cell I need.
Can someone help please or send me to the right place to learn this seemingly
easy task. I have looked at the documentation for DataGridView and cant seem
to grasp it Thanks.
service and filling the datagridview with the data returned. This all works
fine. Next step is to take a value from one of the cells in the datagridview
and return it back with some other values in an object for another webservice
call. The problem is I dont know how to access a cell in a datagridview to do
this. Im pretty sure you have to do it thru the binding source for the
datagridview but I dont know how. I have the datagridview setup for no
multiselect so only one row can be selected and I know I will probably need
to write something to return which row is selected in the gridview and send
it to the bindingsource to tell it and return the value in the cell I need.
Can someone help please or send me to the right place to learn this seemingly
easy task. I have looked at the documentation for DataGridView and cant seem
to grasp it Thanks.