Answers for "datatable parameters c#"

C#
0

jquery datatable passing of parameters

dataTable = $("#Table").dataTable({
                    "sAjaxSource": '@Url.Action("MethodName", "COntrollerName")',
                    "fnServerParams": function (aoData) {
                        aoData.push(
                            { "name": "cCode", "value": "value" },
                            { "name": "bCode", "value": $("#MC_BranchCode").val() },
                            { "name": "ConvertedtoConsol", "value": $("input[type='radio']:checked").val() }
                        );
                    },
                    "bServerSide": true,
                    "stateSave": true,
                   // "select" : 'multi',
                    "bProcessing": true,
                    "scrollX": true,
                    "searching": false,
                    "order": [[1, 'asc']],
Posted by: Guest on January-05-2022
0

datatable in c#

String[] arr = new String[] { "a", "b" };
            DataTable dt = new DataTable();
            dt.Columns.Add("name");
            dt.Columns.Add("other");
            dt.Rows.Add(arr);

            foreach (DataRow r in dt.Rows)
            {
                Console.WriteLine(r["name"].ToString() + " - " + r["other"].ToString());
            }
Posted by: Guest on October-19-2021

C# Answers by Framework

Browse Popular Code Answers by Language