c# - asp.net manually adding a row from codebehind -
how can manually add row/insert db gridview control?
i need perform calculations on user input first before sending data insert sql query.
there gridview.insert()
method not take parameters.
how can pass parameters, come textboxes, dropdownlists, etc , run sql query?
try add in datatable before binding it:
datarow dr = dt.newrow(); // set dr fields here dt.rows.add(dr);
Comments
Post a Comment