Click here to Skip to main content
Licence CPOL
First Posted 9 Oct 2007
Views 10,933
Downloads 96
Bookmarked 14 times

GenericWebDataGrid

By | 14 Oct 2007 | Article
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.

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.

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)

About the Author

Yildirim Kocdag

Web Developer

Turkey Turkey

Member

Yildirim Kocdag is a MSc.BSc.Computer Engineer from Istanbul. He is working as a .NET consultant. Currently using c#, vb.net, asp.net, javascript, SQL and Oracle. His Favourite areas in Computer Science are Compilers, Expert Systems, Digital Image Processing, AI and Extreme Programming.
ykocdag@yahoo.com


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionInteresting but how do I run it? PinmemberSten Hjelmqvist22:01 9 Oct '07  
AnswerRe: Interesting but how do I run it? PinmemberYildirim Kocdag4:53 10 Oct '07  
GeneralRe: Interesting but how do I run it? PinmemberSten Hjelmqvist21:43 10 Oct '07  
GeneralRe: Interesting but how do I run it? PinmemberYildirim Kocdag23:49 10 Oct '07  

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

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 15 Oct 2007
Article Copyright 2007 by Yildirim Kocdag
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid