This is a migrated thread and some comments may be shown as answers.

Rad GridViewLookupColumn

1 Answer 71 Views
This is a migrated thread and some comments may be shown as answers.
Craig Finnigan
Top achievements
Rank 1
Craig Finnigan asked on 25 Mar 2009, 11:06 PM
I'm sure this is a simple problem and i'm probably leaving some important step out but i've not found it it.

I have a radgridview that has a childgridview all setup. 
On of the columns in my childgridview is a gridviewlookup column.

I created a dataset with one table and two columns.
I have populated the columns with Yes and No.

I then set the gridviewlookup columns' datasource, display member, and value member to their respective columns.
When I run the application the dropdown boxes are populated correctly, but I have a problem when i select one of the items.
Nothing shows up in the gridview when I move to the next field or the next row.  If i go back to the field and click the dropdown item it shows up, but does not stay when I move off that field again.

Is there something that i have done wrong in the setup of my column?

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 26 Mar 2009, 11:08 AM
Hi Craig,

Adding a lookup column containing yes and no values is easy. Here is a sample:

DataTable tablec = new DataTable(); 
GridViewLookUpColumn combo = new GridViewLookUpColumn("Option1"); 
combo.DataSource = tablec; 
combo.DisplayMember = "name"
combo.ValueMember = "value"

We assume in the sample above that the Option1 column contains boolean data.

I am not sure about the circumstances that may cause this behavior. So, could you please open a support ticket and send us your code. This way I will be able to investigate the issue and find a solution.

I am looking forward to your reply.

Sincerely yours,
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Asked by
Craig Finnigan
Top achievements
Rank 1
Answers by
Telerik team
Share this question