Click here to Skip to main content
15,891,777 members
Articles / Web Development / HTML

GenericWebDataGrid

Rate me:
Please Sign up or sign in to vote.
2.68/5 (8 votes)
14 Oct 2007CPOL1 min read 25.9K   188   14   4
GenericWebDataGrid is a web based editable grid control creator. You can add an EditableTextColumn or an EditableDropDownColumn. It is easy to use and AJAX enabled.

Screenshot - grid3.jpg

Introduction

GenericWebDataGrid is a web based editable grid control that helps you easily add EditableTextColumns and EditableDropDownColumns. It uses AJAX, so updating the database is fast. A generic alert message is displayed on the page only for a few seconds (not necessary to click of OK), and is useful and user friendly.

About the Code

AddEditableColumn: This function helps you add an EditableTextColumn. It requires the following parameters:

  • Table: The table which will be updated.
  • ColumnName: The column which will be updated.
  • ColumnType: The is important for the update string, and can be Number or String.
  • PK: PrimaryKey of the table.
  • Required: If the column is optional or not.
  • Size: The size of the column.
  • Continues: Decides the functionality of the tab after the update.

Image 2

AddEditableComboColumn: This function helps you add an EditableDropDownColumn. It requires the following parameters:

  • Table: The table which will be updated.
  • ColumnName: The column which will be updated.
  • ColumnType: The column type is important for the update string, and can be Number or String.
  • PK: PrimaryKey of the table.
  • Required: If the column is optional or not.
  • Size: The size of the column.
  • Continues: Decides the functionality of the tab after the update.
  • Comborows: The items in the dropdown column.

Image 3

Screenshots

Screenshot - Grid1.jpg

Picture 1 - Screen

Screenshot - Grid2.jpg

Picture 2 - EditableTextBoxColumn

Screenshot - grid3.jpg

Picture 3 - EditableComboBoxColumn

Screenshot - gridError.jpg

Picture 4 - Error Message

Please do not hesitate to ask any questions: ykocdag80@yahoo.com.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Turkey Turkey
Phd. Yildirim Kocdag is a Computer Engineer.

Programming Languages
Android, Objective-c, c#, vb.net, asp.net, javascript, TSQL.

Computer Science
DataMining, Compilers, Expert Systems, Digital Image Processing, AI and Extreme Programming.

ykocdag@yahoo.com

http://www.linkedin.com/profile/view?id=223886830

Comments and Discussions

 
QuestionInteresting but how do I run it? Pin
Sten Hjelmqvist9-Oct-07 22:01
Sten Hjelmqvist9-Oct-07 22:01 
AnswerRe: Interesting but how do I run it? Pin
Yildirim Kocdag10-Oct-07 4:53
Yildirim Kocdag10-Oct-07 4:53 
GeneralRe: Interesting but how do I run it? Pin
Sten Hjelmqvist10-Oct-07 21:43
Sten Hjelmqvist10-Oct-07 21:43 
GeneralRe: Interesting but how do I run it? Pin
Yildirim Kocdag10-Oct-07 23:49
Yildirim Kocdag10-Oct-07 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.