This is my three tables in database:
Code
tb_plane
============
plane_id plane_name tb_attributes
==============
attribute_id
attribute_nameCode
tb_as_plane_attributes
========================
plane_attribute_id
FK_plane_id
FK_attribute_id valueOn my Form I got 1 combobox which is populated by plane_name's from tb_plane and datagridview (GrdAttributes) which is populate by all attribute_name's from tb_attributes and one extra column named "Value" where the user can put some decimal/integer values. What I need is to make Insert Button Click event to put attributes with values which wrote user to plane selected in combobox and there where in GrdAttributes did not wrote value in column Value by user did not send to tb_as_plane_attributes
I did a code to populate combbox and i prepare datagridview. Perhaps I need to check GrdAllAttributes.Rows to see values is contains after the user has entered data but I don;t know how to do that. If anyone could help will be good. That's my code
C# |

Javeed M ShaikhRank #839 · 2.7K reputationPosted Sep 29, 2011, 12:43 PM EDT