Click to See Complete Forum and Search --> : DataRowView


Sumedh
February 10th, 2003, 01:03 AM
Hi All,

For a datagrid I have trapped 'OnItemExpanding' event. As per the example in MSDN I have type-casted DataGridItemEventArgs.Item.DataItem to DataRowView however I get a invalid type-cast error during execution.

Does anybody know a way out ?

Thanks in advance,
Sumedh

pareshgh
February 10th, 2003, 12:15 PM
could you paste your sample/sleketon of your code so as to understand where you were casting and what type etc...

Paresh

Sumedh
February 12th, 2003, 06:36 AM
The problem is solved. I was making a mistake of keeping my source as data-table & then requesting a DataRowView. Once I changed the source to View of the same table it worked fine.

Neways... thanx a lot for ur intrest.

Sumedh

pareshgh
February 12th, 2003, 12:11 PM
good that you got the sol. quick since there are lots of
mystery that u will solve eventually in datagrids...

Paresh