Hi

I need help about this
I have a data grid view like this:

Index

Code

Name

Price +

Price _

1

1

BMW X5

1000000 $

 

2

1

BMW X3

500000 $

 

3

1

BMW Z3

250000 $

 

4

1

SUM

 

1750000 $

Row 4 add by code automatically

I can do it. There is no problem.

But when my user want to edit the data (some row OR price) I have a Problem.

How I can make a Code for Delete this row when it loaded? (Select and delete)

Or I can do some thing better than delete the row and write it again?

And one Other Question:

How I can write Invisible columns in Data Grid view???

Some data add automatically by code and I don’t want my user see it. But when I make it invisible I can't access it by index.