G
Guest
I'm trying to create a preview shot of a record being edited, so I want to
take the current state and pass it to a instance of a form I have. I've tried
to create a dataView and pass that, but it has been failing.
System.Data.DataRowView drvCurrent;
System.Data.DataView dvNew;
dvNew = new System.Data.DataView();
drvCurrent = (System.Data.DataRowView)this.ds1.Message;
dvNew.Table = this.ds1.Message;
dvNew.RowFilter="MessageID = '" +drvCurrent[0] +"'";
Form frmTemp = new frmPreview(dvNew);
I could iterate through the active controls, but the form takes care of
formatting based on the contents of the record it's reading.
Thanks in advance,
E.
take the current state and pass it to a instance of a form I have. I've tried
to create a dataView and pass that, but it has been failing.
System.Data.DataRowView drvCurrent;
System.Data.DataView dvNew;
dvNew = new System.Data.DataView();
drvCurrent = (System.Data.DataRowView)this.ds1.Message;
dvNew.Table = this.ds1.Message;
dvNew.RowFilter="MessageID = '" +drvCurrent[0] +"'";
Form frmTemp = new frmPreview(dvNew);
I could iterate through the active controls, but the form takes care of
formatting based on the contents of the record it's reading.
Thanks in advance,
E.