Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21132 | Nov 3,2004 08:25 AM UTC | Feb 5,2008 04:19 PM UTC | WinForms | 6 |
![]() |
Tags: Tools |
private void MyGrid_SaveCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridSaveCellInfoEventArgs e) { if(e.RowIndex > 0 && e.ColIndex > 0) { this.SetCellValue(e.RowIndex-1, e.ColIndex, e.Style.FormattedText); } e.Handled = true; } private void SetCellValue(int row, int col, object val) { RecordStruct empStruct = m_InfoList[row] as RecordStruct; switch(col) { case 1: empStruct.EmployeeName = val.ToString(); break; case 2: empStruct.EmployeeNum = val.ToString(); break; case 3: empStruct.JoiningDate = val.ToString(); break; default: break; } }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.