F
Frank
Hello,
i created an own DataGridColumn. In this class i get the corresponding data
with the GetColumnValueAtRow method. Now i will display all new lines in the
DataGrid in Red. So i inserted an additional field called 'New'.
My problem is that i cannot access the correct data row. I tried to access
the line with the following line of code:
NewFlag = (bool) ((DataRowView)
Source.Current).DataView.Table.Rows[RowNum].ItemArray[((DataRowView)
Source.Current).DataView.Table.Columns.IndexOf("New")];
But this works only, if the DataGrid is not sorted. In the other case the
row data are not identically with the row data from the GetColumnValueAtRow
method. So, if anybody knows, how i get the correct information, please
answer.
Thanks
Frank
i created an own DataGridColumn. In this class i get the corresponding data
with the GetColumnValueAtRow method. Now i will display all new lines in the
DataGrid in Red. So i inserted an additional field called 'New'.
My problem is that i cannot access the correct data row. I tried to access
the line with the following line of code:
NewFlag = (bool) ((DataRowView)
Source.Current).DataView.Table.Rows[RowNum].ItemArray[((DataRowView)
Source.Current).DataView.Table.Columns.IndexOf("New")];
But this works only, if the DataGrid is not sorted. In the other case the
row data are not identically with the row data from the GetColumnValueAtRow
method. So, if anybody knows, how i get the correct information, please
answer.
Thanks
Frank