FlexGrid, add tag to column

Posted by: mysql.jorge on 13 February 2024, 9:13 pm EST

  • Posted 13 February 2024, 9:13 pm EST

    Howdy,

    How would it be possible to add a TAG do columns?

    For example:

    grid.cols(“colname1”).tag = “ignore-this”

    grid.cols(“colname2”).tag = “add-this”

    Something like this, I use unbind source, I mean:

    dim dt as new datatable

    sql=“select * from table”

    dt=sqldatatable(sql) '<= something that fills the datatable

    grid.datasource = dt

    thanks in advanced,

  • Posted 14 February 2024, 12:44 am EST

    Hi Jorge,

    you could use “UserData”:

    this.c1FlexGrid1.Cols["colname1"].UserData = "ignore-this";

    But I don’t know whether this works also in bound mode - you could give it a try.

    Best regards

    Wolfgang

  • Posted 14 February 2024, 1:48 am EST

    Hi,

    Tried that and didn’t worked,

    Any other solution?

  • Posted 14 February 2024, 3:33 am EST

    Hi,

    Tried that and didn’t worked,

    Any other solution?

  • Posted 14 February 2024, 4:30 pm EST

    Hello Jorge,

    Thank you, Wolfgang, for your input here. We appreciate it.

    As Wolfgang said, you can use the UserData property of the columns as Tags. Please refer to the attached sample based on Wolfgang’s input for implementation. (see FlexGrid_AddTagInColumn.zip)

    You mentioned that the UserData property did not provide assistance. Can you confirm if the sample helps?

    Could you please elaborate on your use case and the work flow, i.e., how or what you want to implement?

    This will help us understand your requirements better and provide you with the best solution possible.

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels