DataGridView DataGridViewLinkedColumn

0
0

I have question on DataGridViewLinkedColumn. Look at column named Rail Car. In my data when there is no Rail Car Number, the grid is displaying as [object Object]. What is this and how to get rid of that.

Also is there any way to format DataGridViewLinkedColumn? Based on value of other field I need to update value of column SO #. SO # column is also setup as DataGridViewLinkedColumn.

Thanks

Nilesh Sheth

Attachment
  • You must to post comments
0
0

The [object Object] happens probably because it’s passing DBNull to the browser. As a workaround you should set the DBNull values to null or “”.

The event to format the cell is CellFormatting, but as you probably has already tried, it’s not fired for DataGridLinkColumn (and DataGridButtonColumn) – which is also why DBNull is not automatically formatted to null.

Logged as bug WJ-8964. Will be fixed in the next update.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.