DataTable25 is a reusable server-side HTML table builder
designed for ASP.NET MVC / Razor applications. It dynamically renders
editable rows with multiple control types and supports add/delete rows,
auto-complete, postback events, and view-only mode.
Key Features
Dynamic column configuration
Multiple input control types
Add / Delete rows
AutoComplete (URL & static list)
Column-level PostBack support
Hidden field binding
Date & Time picker support
DataTable25.Properties
Property
Type
Description
ControlId
string
HTML ID of the table
ModelId
string
Model prefix for form binding
IsView
bool
View-only mode
Columns
List<Columns>
Column definitions
RowValueList
List<object>
Row data source
DataTable25.Columns
Property
Description
ColumnId
Model property name
ColumnName
Column header text
ControlType
Input control type
PlaceHolder
Input placeholder
CustomWidth
Column width
IsRequired
Shows required *
ReadOnly
Disables control
EnablePostBack
Triggers server postback
AutoCompleteUrl
AJAX autocomplete URL
AutoCompleteList
Static autocomplete list
HiddenFieldId
Hidden model field
ListItems
Dropdown items
ListId
Dynamic dropdown source
Control Types
TextBox
Number
TextArea
ListBox (Dropdown)
CheckBox
Date
Time
File
6AutoComplete Support
URL Based
AutoCompleteUrl = "/Item/Search";
Static List
AutoCompleteList = "['Item1','Item2','Item3']";
PostBack Handling
var info = DataTable25.GetPostBackInfo();
Field
Description
ControlId
Triggered control
RowId
Row index
ColumnName
Column name
Sample code
public void LoadMultiEntry(Models.FormModel.AddForm model)
{
try
{
var postinfo = DataTable25.GetPostBackInfo();
var RowvalueList = new List