DataGridView custom colum with 3 text fields

0
0

Hi,

I need to create (read only) custom column, that would contain 3 text boxes vertically ordered, values for these boxes would be populated from JSON key / value pairs in the database filed.

Another option could be using TagTextBox.

Is something like this achievable?

 

Thanx,

D

  • You must to post comments
0
0

Many thanks,

works perfectly.

Just one thing that I noticed, how do I set up column header title, currently it is empty ?

D

  • Levie (ITG)
    To set the Column Header click “Columns” property in DataGridView and check the “HeaderText” column property. If you’re talking about an empty Column header on the right size, it’s probably the absence of a column, you can adjust the space by modifying the AutoSizeMode property of the columns.
  • You must to post comments
0
0

You can actually use a custom cell renderer too.  Please see the sample attached.

This allows you to use enter html to define the behavior of the cell in any way you want (see my.JSONCellRenderer.js)

If you create your own version based on this sample, make sure you:

  1. Uncomment [assembly: Wisej.Core.WisejResources(ExcludeList: "")] in AssemblyInfo.cs
  2. Set the .js file to be an embedded resource.

Let me know if you have any issues!

HTH,

Levie

  • You must to post comments
0
0

Hi Dino,

I’ve attached a small demo demonstrating how you can achieve something like that!

Let me know if you have any questions about it.

Best regards,

Levie

Attachment
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.