This is a migrated thread and some comments may be shown as answers.

BeginInsert does not seem to be working

1 Answer 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tarun
Top achievements
Rank 1
Tarun asked on 27 Jun 2011, 09:05 PM

I am setting the itemsource of my radgridview using the code
WireInstructionDGV.ItemsSource = obj.GetWireInstruction("BNYBD", "MST", "CPTY", "USD")

To add a new row, i have a button who's click event has
Me.WireInstructionDGV.BeginInsert()

Clicking on the button does not add a new row in the datagrid. any ideas ?

(I do not have IsReadOnly = True or CanUserInsertRows  = False)

1 Answer, 1 is accepted

Sort by
0
Tarun
Top achievements
Rank 1
answered on 27 Jun 2011, 11:14 PM
I figured it out. Instead of making the itemsource a list, i needed to make it an ObservableCollection
Tags
GridView
Asked by
Tarun
Top achievements
Rank 1
Answers by
Tarun
Top achievements
Rank 1
Share this question
or