We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

exception when setting a GGC cell value from textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

57697 Mar 8,2007 07:33 PM UTC Mar 8,2007 11:54 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 8, 2007 07:33 PM UTC

Hi,
I'm trying to do the following:

rec = this.GGC.Table.CurrentRecord;

this.GGC.Table.GetTableCellStyle(rec, "MyField").CellValue = this.txtMyField.Text;

but I get an exception "The specified argument was out out of the range of valid values"

My record is not null and this code works elsewhere - can you help with this?

Thanks vm.


Administrator [Syncfusion]
Replied On March 8, 2007 08:54 PM UTC

Hi,

Please try this,

Record rec = this.GGC.Table.CurrentRecord;
rec.SetValue("MyField",this.txtMyField.Text);

Best regards,
Haneef

Administrator [Syncfusion]
Replied On March 8, 2007 10:48 PM UTC

Hi Haneef,
That works - why does the other not work? It's fine on other GGCs..

>Hi,

Please try this,

Record rec = this.GGC.Table.CurrentRecord;
rec.SetValue("MyField",this.txtMyField.Text);

Best regards,
Haneef

Administrator [Syncfusion]
Replied On March 8, 2007 11:54 PM UTC

Now I get the same error with this:

rec.SetValue("status", this.cmbCombo.Text);



>Hi Haneef,
That works - why does the other not work? It's fine on other GGCs..

>Hi,

Please try this,

Record rec = this.GGC.Table.CurrentRecord;
rec.SetValue("MyField",this.txtMyField.Text);

Best regards,
Haneef

CONFIRMATION

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.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;