Replies
Hello Sandeep,
Thank you for posting in our forum.
Windows Forms designer is designed to work in two layout modes: SnapLine and SnapToGrid. In order to turn of the snap lines you may switch to SnapToGrid layout mode. Please note when switch to this mode you may also consider to set Default Grid Cell Size, Show Grid and Snap to Grid properties. More about Windows Forms Designer options you may find by following the next link
https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k(VS.ToolsOptionsPages.WindowsFormsDesigner.General);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.0)&rd=true
.
Please let me know if you need any additional information.
Thank you for using Infragistics Components.
Hello Antony,
Thank you for your feedback.
I am glad to hear that you have solved your issue. Please note one other possible solution to make click on the cell to select the row is to set CellClickAction of the grid to RowSelect.
More about CellClickAction property you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.2~Infragistics.Win.UltraWinGrid.UltraGridOverride~CellClickAction.html.
Thank you for using Infragistics Components.
Hello Antony,
Thank you for posting in our forum.
Right now UltarGrid does not have such build in button. However if you need to implement such functionality you may add your own button. In the button click event handler call DeleteSelectedRows method of the grid. This will delete all currently selected rows in there are any.
One more point. When you call this method the grid will pop up a message asking the user for confirmation. You can suppress this message box either by using this overload of DeleteSelectedRows:
this.ultraGrid1.DeleteSelectedRows(false);
or by setting ShowDeleteRowsPrompt property of the DisplayLayout to false like this:
this.ultraGrid1.DisplayLayout.ShowDeleteRowsPrompt = false;
More about DeleteSelectedRows method you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/HTML/Infragistics4.Win.UltraWinGrid.v15.2~Infragistics.Win.UltraWinGrid.UltraGrid~DeleteSelectedRows().html.
Please let me know if you have any additional questions.
Thank you for using Infragistics Components.
Hello Antony,
Thank you for posting in our forum.
You are on the right way. When you set AllowAddNew to Yes you are actually allow the user to add rows to the grid. However you will need to implement the way the new rows should be added. If you need the grid to take care of this you may set AllowAddNew to some other value of AlloAddNew enumeration. More about this enumeration you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.AllowAddNew.html.
Please let me know if you have any additional questions.
Thank you for using Infragistics Components.
Hello Bharat,
Thank you for posting in our forum.
UltraGrid’s column exposes SortComparer property. By setting this property to you custom class you may sort the column in your specific order. More about this property you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGridColumn~SortComparer.html.
In the attached sample I have created a one column grid which implements SortComparer. Please check my sample and let me know if this is what you are looking for or if I am missing something.
Please let me know if you have any additional questions.
Thank you for using Infragistics Controls.
Hello Tanvi,
We are still following this forum thread.
Please feel free to let us know if you still have any questions on this matter.
Hello Tanvi,
Thank you for contacting Infragistics Support.
In order to investigate your issue I will need a little more information.
– Which UFT Version are you using?
– What are the versions of .Net add-ins you have installed on your testing machine?
– Which QTP patches you have installed on your testing machine?
– What is the version of TestAdvantage you are using?
– What is the version of Infragistics Controls your application under test was built with? It should be something like 15.1.20151.2032.
– Do you use versionless assemblies in your application under test?
– Do you perform your test on your local machine or you are using some kind of remote desktop?
Looking forward to your reply.