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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -