Controls List
Radio Button
Simple Tabel Create with DataGrid18
Product List
Product ID | Product Name | Brand Name | Exp. Date | ||||
---|---|---|---|---|---|---|---|
25 | Indocin | David | 07-Oct-2024 22:00:19 | ||||
50 | Enebrel | Sam | 07-Oct-2024 22:00:19 | ||||
10 | Hydralazine | Christoff | 07-Oct-2024 22:00:19 | ||||
21 | Combivent | Janet | 07-Oct-2024 22:00:19 | ||||
100 | Dilantin | Melanie | 07-Oct-2024 22:00:19 | ||||
25 | Indocin | David | 07-Oct-2024 22:00:19 | ||||
50 | Enebrel | Sam | 07-Oct-2024 22:00:19 | ||||
10 | Hydralazine | Christoff | 07-Oct-2024 22:00:19 | ||||
21 | Combivent | Janet | 07-Oct-2024 22:00:19 | ||||
100 | Dilantin | Melanie | 07-Oct-2024 22:00:19 | ||||
@dataGrid18.CreateTable
("Product List", columnCollection, URlVal, null, "Drug", "asc", "../LiveDemo/DataGrid",
"1", dt, dt.Rows.Count, 10, 1);
Help
In DataGrid18, Follow below Steps for How to Use DataGrid18 in your Project
-
Decalre the following Class in your project Controller Page
DataGrid18 dataGrid18 = new DataGrid18(); -
Decalre the RadioNutton Classes in the Controller Page
DataGrid18.ColumnCollection columnCollection = new DataGrid18.ColumnCollection();
DataGrid18.UrlCollection URlVal = new DataGrid18.UrlCollection
In ColumnCollection (FieldName, Width, Alignment, Caption, TextColor, FieldType, AdditionalColumns)
In UrlCollection (Url, IsPopup, Icons) -
Set All Parameters in the Create Table Function
string tabel = dataGrid18.CreateTable("Product List", columnCollection, URlVal, null, "Drug", "asc", "../LiveDemo/DataGrid", "1", dt, dt.Rows.Count, 10, 1); -
Set the set the return string value to ViewBag
ViewBag.Htmlstr = tabel; -
In View Page Call the ViewBag
@Html.Raw(ViewBag.HtmlStr)
Property | Type |
---|---|
FieldName | string [] |
Width | string [] |
Alignment | string [] |
Caption | string [] |
TextColor | string [] |
FieldType | string [] |
AdditionalColumns | string [] |