views:

2

answers:

0

hi all, on http://www.dotnetjohn.com/articles.aspx?articleid=83 there is good example of using typed dataset though its in vb.net. I am not able to to the castings done in DataGrid1_ItemDataBound event in c#. Can any body help? datarow = CType(CType(e.Item.DataItem, DataRowView).Row, Dataset1.WorkExperianceDataRow) is the line with which I am stuck.

below line will be to-to conversion if written in c# but it wont execute. datarow = (DataSet1.MansoonZoneTableRow)(((DataRowView)e.Item.DataItem).Row);