Click here to Skip to main content
16,019,427 members

Comments by phanny 2011 (Top 30 by date)

phanny 2011 9-Mar-12 4:23am View    
but in Ms SQL server, there is no data type autonumber. So I don't know what datatype that I can put.
phanny 2011 9-Mar-12 3:00am View    
thanks so much......It works now.
phanny 2011 9-Mar-12 2:43am View    
thanks, it works. But It doesn't clear the old one. So when we click on button show, it always show the duplication data...How to do?

Thanks
phanny 2011 8-Mar-12 23:20pm View    
When I click on button show then, it has an error on this line
dataGridView1.Rows.Add(i + 1, dt.Rows[i][0], dt.Rows[i][1], dt.Rows[i][2], dt.Rows[i][3]);

The error is (InvalidOperationException was unhandled.
Rows cannot be programatically added to the DataGridView's rows collection when the control is data-bound.)

Thanks for your understand.
phanny 2011 8-Mar-12 22:32pm View    
sorry, read line= red line.