hi all ...

i want fill data graid view with data taken from text boxs in medecian info group box when i press add button
the problem is it add only one row ... i want make that data grid view represet bill
so i want add mor than one row

screen shots :

Click Here

Click Here

Recommended Answers

All 3 Replies

Hi islam 2, welcome here.
You first have to do a DataGridView1.Rows.Add();

thanks alot mr.ddanbe...

what if i want make cell be a combo box represent the quantity ana another cell is calculated cell of ( quantity*cost )

This is a code snippet I posted here some time ago you can bring into use for your case. Because you fill your cells with values from Textboxes why not use the value of a combobox to fill such cell.
Do you only have specific quantity values?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.