how to easily assign gridchanges to database table

5 replies. Last post: December 28, 2011 2:51 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
soniya kMember

Earlier we used devexpress ...After executing following code the grid values automatically used to get stored in database table..

 

DataRow row = (DataRow)gvRequisition.GetDataRow(gvRequisition.EditingRowVisibleIndex);

if (row != null)

{

IDictionaryEnumerator enumerator = e.NewValues.GetEnumerator();

enumerator.Reset();

while (enumerator.MoveNext())

{

if (enumerator.Value != null && enumerator.Value.ToString() != "")

{

row[enumerator.Key.ToString()] = enumerator.Value;

}

}

here "E.NEWVALUES" Gets a dictionary that contains the values of the non-key field name/value pairs in the row to be updated.

 

Now while using intersoft how can i get IDictionaryEnumerator object of gridchanges ...or a collection object of gridchanges to easily iterate through and assign values to database table

 

I have seen the sample provided by you on "batchupdate using custom object update" But as in the sample i can't create "custom.cs" files with so many fields as we are using too many tables and too many grids

I want a simple method like above ( iterating through enumerator and assigning values to row in datatable)You can also refer to email sent to technical@intersoftpt.com----

"changes in DAL? [IS-1C9B284D-4DF8-466E-B45B-8BC0D8A148E6] {99812}"

 

All times are GMT -5. The time now is 11:20 AM.
Previous Next