Controls List
Radio Button
Simple Tabel Create with DataGrid18
Product List
| Product ID | Product Name | Brand Name | Exp. Date | ||||
|---|---|---|---|---|---|---|---|
| 25 | Indocin | David | 10-Dec-2025 06:32:28 | ||||
| 50 | Enebrel | Sam | 10-Dec-2025 06:32:28 | ||||
| 10 | Hydralazine | Christoff | 10-Dec-2025 06:32:28 | ||||
| 21 | Combivent | Janet | 10-Dec-2025 06:32:28 | ||||
| 100 | Dilantin | Melanie | 10-Dec-2025 06:32:28 | ||||
| 25 | Indocin | David | 10-Dec-2025 06:32:28 | ||||
| 50 | Enebrel | Sam | 10-Dec-2025 06:32:28 | ||||
| 10 | Hydralazine | Christoff | 10-Dec-2025 06:32:28 | ||||
| 21 | Combivent | Janet | 10-Dec-2025 06:32:28 | ||||
| 100 | Dilantin | Melanie | 10-Dec-2025 06:32:28 | ||||
@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 [] |