Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
How to retrieve the mulitple column value of webcombo in ultrawebgrid
posted

I have bound a webcombo to a ultrawebgrid. 

 

webcombo.DataSource = CustomerDataTable;

webCombo.DataTextField = "CustomerName";

webCombo.DataValueField = "CustomerName";

 

webcombo.DataBind();

I am able to see the webcombo and all the columns associated to it. Can you tell me how to retrieve its value. Like say for example

Customername, city, state, Zip in my webcombo.

 

How do I retrieve the values of selected city, state from webcombo wile saving it to the database.

If we can retrieve the city and state information, Is there a way to hide the Zip. I just need this value only to save to the database but would not like to show it to the user>

 

Any suggestions please

 

 

Parents
No Data
Reply
  • 12679
    posted

    Hello,

    You can get a reference to the selected values from WebCombo in each event handler I am using button click.

    For example:

          protected void Button1_Click(object sender, EventArgs e)
        {
            //Get the selected row
            UltraGridRow row =  WebCombo1.SelectedRow;
            //Get the value of first cell from the selected row.
            string value = row.Cells[0].Value.ToString();
        }

Children