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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

setting text of combo based on selection from gridlist

Thread ID:

Created:

Updated:

Platform:

Replies:

10559 Feb 5,2004 03:41 PM UTC Feb 5,2004 08:44 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 5, 2004 03:41 PM UTC

Hi, I have a gridlist control, when the user makes a selection from this control I need to run a query to retrieve two other values from a table and populate the text box portion of two other combos in the same row with these values. You sent me a sample of how to determine the list in one combo based on the selection in another one, but this is a little different. The basic sql I need to use is: "select gender from leverage where target_id =" & CType (target_id.CellValue, String) and then I need to set the value of another cell of cell type combo to the results of this query. I want to leave the drop down list itself the same and just change the text. Do you have any examples of this?

Administrator [Syncfusion]
Replied On February 5, 2004 05:44 PM UTC

You can handle CurrentCellAcceptedChanges, and in your handler, get the values you want to set in the other cells, and set them. Here is a sample that sets columns 2 and 3 when you change column 1. forum_10559_5278.zip

Administrator [Syncfusion]
Replied On February 5, 2004 06:55 PM UTC

Thanks a lot! Do you have an example in VB rather than C#? >You can handle CurrentCellAcceptedChanges, and in your handler, get the values you want to set in the other cells, and set them. > >Here is a sample that sets columns 2 and 3 when you change column 1. > > >forum_10559_5278.zip > >

Administrator [Syncfusion]
Replied On February 5, 2004 08:44 PM UTC

Please disregard my last message - this works great now! >Thanks a lot! Do you have an example in VB rather than C#? > >>You can handle CurrentCellAcceptedChanges, and in your handler, get the values you want to set in the other cells, and set them. >> >>Here is a sample that sets columns 2 and 3 when you change column 1. >> >> >>forum_10559_5278.zip >> >>

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;