KATy
KATy

Reputation: 73

how to get data from a datagridview and insert into database without using databinding?

i ve a datagrid and wen a button s clicked i want the values from the datadrid to the database..

without databind to dataset/datatable..

thanx in advance

Upvotes: 1

Views: 731

Answers (1)

Henk Holterman
Henk Holterman

Reputation: 273504

You should databind to something.

Use a List<> or better BindingList<> of a simple class that has properties for each column in your Db.

Upvotes: 1

Related Questions