Please let me know if you have already worked in wpf based windows application
my query is How to retrieve objects from a WPFGrid control in qtp. when spying, qtp is identifing only the WPFGrid and note the objects inside it. pls suggest workaround for this
WpfWindow("title").WpfTable("title")
Inside the wpftable there are four columns and some rows. first column contains chechboxes. i want to check/uncheck that. anything inside the wpftable are not recognized by object spy
Regards
You want to perform an operation on CheckBoxes , if yes, than you need to
WpfWindow("title").WpfTable("title").WpfCheckBox("index:=0").Click
Spy the check box and check for the property.
Related
I am to design a report which will be having given rows, I have tried with Tablex and Matrix, but I am facing issue with grouping.
Is there any other control or any custom control or any way of customizing Table
which I can use to design the following formatted rows in report.
Any link with demo, sample or POC would be great help.
Kind hard to tell what you're going for from your picture/description, but I'm guessing you may want to use a List object. You can put your group at the list object level, and then add text boxes, tables, images or whatever you need inside the list. You'll get a set of whatever is inside the list for each group, using the data from that group. Take a look at the sample/description here, which looks similar to what you're trying to do: here
I'm trying to create a drop down / combo box in dev express with check boxes, to allow the user to select multiple options.
Something like this:
I've found some documentation but nothing that tells me what to do. Can anyone help?
Use checkedComboBoxEdit control and use it's drop down list as you want..
Refer - CheckedComboBoxEdit - add AllowMultiSelect property devexpress thread and attached example..
you can easily implement the required logic manually using a piece of code. Simply handle the SelectedIndexChanged event and check the selected items.
Hope this help...
I have a winform that needs to be loaded to update its controls' values or properties, before it is to be shown.
I found a stackoverflow question asking the same thing, but it's answer doesn't really help me. Load a form without showing it
Any sample code will be appreciated. Thank you,
Only you need create a new instance of the form and set the values of the controls.
check this code
Var
AForm : ChildForm;
begin
AForm:= new ChildForm;
AForm.textBox1.Text:='Foo'; //this control can be accessed here because the Modifiers property was set to public.
AForm.Show;
end;
Btw remember if you want modify or access the controls of another form you must set the property Modifiers of the control to access to public.
Create the form like this:
form := new MyForm();
Assuming you have implemented a method on MyForm to update the values, call it:
form.Update();//may need to pass parameters here
Show the form in the usual way:
form.ShowDialog();
From MSDN:
Form.Load
Occurs before a form is displayed for the first time.
So you can do all updates to the controls that are necessary before you show the form in this event handler.
But actually it is probably better to use databinding on the controls, so that they automatically reflect the current values you want them to show and you don't have to write any glue code bringing data on controls (and reading from them).
I am using checkedListBox with windows forms . I am using LINQ for database operations.
Now when user edits the form I need to see if checkboxes are new selected and if entry does not exist insert to the table.If they had checked it before and now they checked it off I need to delete that entry from database. Can some one help me how can I do this in LINQ some easy way ? In sort I need to Insert any newly selected checkboxes and delete if they existed before but are not checked off.
Thanks a lot.
You can easily get the checked and unchecked items, but to determine if they are originally checked/unchecked, you have to store that somewhere, whether the tag property or in a variable somewhere.
HTH.
I'm not sure how to fix this issue, but when I utilize combo boxes on my form which selects data from multiple tables I'm not able to save any of the data selected.
I tried to use the Bound form utility but it only asked me to "Enter Parameter Value". I took out the "Bound" portion of the code and the combo box works fine.
I have a nice little save button, but it doesn't actually save anywhere.
I tried using a query, but that didn't fix it either unless, of course, I didn't do the query correctly.
Here is the "Row Source" information...
SELECT SubArea.SubAreaID, SubArea.SubAreaName, SubArea.ProductName FROM SubArea WHERE (((SubArea.ProductName)=Forms![Combo Form]!Product));
Do I need to put something in VBA or perhaps a Macro to have all the data selected to actually save into a table? HELP!
For the Bound Form
Open the form in design mode, right click on the combo box and go to properties. Check out if it is actually bound to something in the Control Source field.