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
175
Filling the row with data from query after entering value in first column
posted

Hi,

I have a situation where after user has typed the data in the first column and pressed tab, a query will be performed and the resulting data should fill the rest of the columns.

 

Col 1                      col2

+-----------------|+------------|---------------|--------------------|

12345 & tab        Should populate rest

 

Thanks.

Parents
No Data
Reply
  • 2165
    posted

    Hello Joy,

     

    Thank you for contacting Infragistics Developer Support.

    I am not sure how you bind your data in the grid and how you execute your queries against the data source/data base so I will provide you one of the suggestions that came to my mind.

    One of the possible solution in order to get a data from a dataset(or a database) source is to write a LINQ query. Using the value of the first column helps the query to find the rest of the data from the source and attach it to the data source of the UltraGrid. You could find more information about Querying DataSets here:

    http://msdn.microsoft.com/en-us/library/bb399358%28v=vs.110%29.aspx

    I’ve implemented this suggestion in a simple sample, and you could run and evaluate it, please see attached zip.

    Please let me know if my assumptions are wrong, or the suggested implementation is not appropriate for your scenario. Please add more details about the datasouce/database you are using and how you build and execute the query in that is build based on the first column.

    Please let me know if you have any further questions.

    FillingRowWithQuary.zip
Children