Add new record to GRID, can we customize it

3 replies. Last post: March 5, 2010 12:42 PM by Maged Mikaeel
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

   I’m using webgrid in a large ASP.NET project.

   I want to use the nice feature to insert a new row using the “add new row bar” from the webgrid to save time developing a form to do so, and users like that too.

   I’ve one big issue regarding the database.

   So it currently linked to a datasource. This datasource has definition to the insert function that is pointing to a special code that is written to handle the inset in the database functionality. This insert function has a parameter for the object that handle the database insert functionality.

   The issue is, I need to put some special data in the insert object, like the user ID, current date and time….etc

   These special data can not be get from the add “new row bar” items because they all read only data in the grid and that can not be changed, and actually other items are not in the grid at all.

   How can ask the GRID to trigger an event before  it insert the new row passing the add new record data object, so I can put these data programmatically before it call the add new record API?

  This is quit complicated and can not be fixed in any other way except WEBGRID to trigger event before adding the new record.

Please advise how to do so with sample code if this is applicable.

If not, can’t you add such feature in the WEBGRID? And when can we have that?

Thanks,

Maged Mikaeel

All times are GMT -5. The time now is 12:55 AM.
Previous Next