How to add data to a DataGrid Cell.
Hi guyz i would like to add data to a datagrid cell that is bound to a table however, i have handled the column changed event of the table en every time i do this (Below).
Public Shared Sub Column_Changed(ByVal sender As Object, ByVal e As DataColumnChangeEventArgs)
e.Row.Item("fldDayPay") = 223
End Sub
I get a stackoverflow exception thrown. I think the reason is by doing this 'e.Row.Item("fldDayPay") = 223' inside the event it chages the column and the event is fired again which makes an infinite recursion.
I would like to know if there is an easier way of doing this or how would you go about adding data to a cell in a datagrid
LION OF JUDDAH!
__________________
LION OF JUDDAH!
|