How to add dynamic grid view

Hello All,

I would like to add dynamic rows and columns to the grid; is this feasible?
Additionally, how to display the data table in the form’s.

Thanks,
John Smith

Please tell us more about your requirement.

Thanks for replying

if I want to add radio button group through x++ code , how it is possible.
like I want to add radio button for 12 Month then?
and also I want to write this code on form activate() method.

is there any other communication source available for quick response.

thanks
john smith

If you know in advance that you’ll need such a field, what’s the point of adding it code? Add it in the normal way and hide by code if you don’t want to show it in some cases.

A radion button with twelve values in a grid doesn’t make a good sense to me. Either use a combobox in a grid or a radion button outside the grid.

In either case, use an enum; I believe there already is one for this purpose.

Thanks.

Yes, I currently use an enum for combo boxes. However, in my situation, I also need to add a dynamic radio button whose count and value will vary based on other selections.

I have one more question regarding tables: Is it possible to display the table from the SQL to the user interface (UI) without utilizing the grid view and its data source properties?

We can bind the data to the grid directly, just like in Asp.net Core.
dgDtl.DataSource = ShipperData;
dgDtl.DataMember = DtlName;
dgDtl.DataBind();

The.net core code shown above binds the data to the “dgDtl” grid. I want to this functionality in Dynamics.

Regards,
John Smith

As I said, the whole idea of putting a radio button to a grid sounds wrong to me. Please try a simple scenario to see whether it’s possible before designing a solution based on this idea.

Also, please don’t mix several different topics in the same thread. Instead, create a new thread with the appropriate title and tags. Then each question have a clear title in the forum, it’s clear which question has been answered and which wasn’t, what was the answer and so on. It makes the forum much more useful.

I want this functionality in Dynamics isn’t a good approach to design of F&O solutions. Instead, you should learn and utilize what the product offers to you.

Yes , I’ll take care of it next time.
is there any solution available on forum regarding tables.

I currently use the grid view for tables, but there are situations when I want to show the columns from four tables while keeping them visible (for example, sometimes showing only four columns in that manner).

I’m sorry, but it’s not clear to me what you have in mind when mentionding any solution available on forum regarding tables. If it’s related to this thread, please elaborate your problem here. If it’s about something else, please create a new thread and explain it in detail there.

1 Like