Unexpectedly, I was a little excited to see so many messages when I went home in the afternoon.
In order not to let everyone feel frustrated, I first put the control up for you to see first. It may take some time to create the installation package and protect the code.
Here, I want to declare that I am a personal developer of this WebControl and have no commercial purposes. My goal is to improve the current B/S software development model and reduce the difficulty of software development.
You only need to bind the data source to use this DataList control.
Example:
<PC3: datalist id = "DL1" Width = "550px" Runat = "Server" AllowSorting = "True" PageSize = "10"
AllowPaging = "True" AllowCustomPaging = "false" PrimaryFieldName = "ColA">
<PC3: DataListColumn ColumnType = "CheckBox"> </PC3: DataListColumn>
<PC3: DataListColumn HeaderText = "111" DataField = "ColA" SortField = "ColA" Width = "150">
</PC3: DataListColumn>
<PC3: DataListColumn HeaderText = "222" DataField = "ColB" Width = "50"> </PC3: DataListColumn>
<PC3: DataListColumn HeaderText = "333" DataField = "ColC" SortField = "ColC" Width = "300">
</PC3: DataListColumn>
</PC3: datalist>
Protected MSPlus. Web. UI. WebControls. DataList DL1;
Private void Page_Load (object sender, System. EventArgs e)
{
DataTable Dt = GetBindData ();
DL1.DataSource = Dt;
DL1.DataBind ();
}
You do not need to care about paging, sorting, and processing of selected items. Because these events and functions have been integrated into the control. All you need to do is bind the data source!
The MSPlus DataList control is not developed by inheriting the DataGrid of Microsoft's own body, because it inherits the DataGrid and then simply modifies the rendering of the Render. This WebControl has no meaning. MSPlus DataList inherits directly from WebControl, and the containers of the internal Column and Item sub-controls start from the CollectionBase class extension respectively. All performance and scalability will have many benefits.
I am currently looking for a Demo of this control. I will release it as soon as possible. At the same time, I hope you can help me test it together and provide more valuable comments.
I am also very eager to communicate with colleagues in. NET development to make progress!