Kiran Kumar Talikoti

Kiran Kumar Talikoti

  • 432
  • 3.5k
  • 1.8m

WPF Concept

Sep 19 2013 2:57 AM
Hi,

I have class called Item which has Id ,Name property and Creating Item table in DB.

after adding some data i will retrieve data in data grid
Suppose  a table looks like this in DataGrid .


Id  Name
1 pen
2 pencil
3 eraser
4 book
5 sharpener


If i delete Id having 3.Then after deleting Id should be in ascending Order.Like this and it should reflect in Datagrid after Deleting


Id Name
1 pen
2 pencil
3 book
4 sharpener



Kindly help!!

Answers (3)