This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Explain My String Data Is All Coming Out As Question Marks? |
|
Answer» We have FOUND that this happens when the database character set is WE8ISO8859P1, and the Oracle client is 9.2.0.1. This is an Oracle bug, and UPGRADING your client to 9.2.0.4 or higher should resolve the problem. In any other case, PLEASE GENERATE a TOAD Support BUNDLE from the Help menu and let us know what you are seeing. We have found that this happens when the database character set is WE8ISO8859P1, and the Oracle client is 9.2.0.1. This is an Oracle bug, and upgrading your client to 9.2.0.4 or higher should resolve the problem. In any other case, please generate a TOAD Support Bundle from the Help menu and let us know what you are seeing. |
|
| 2. |
What Is The Oci Buffer Array Size Option For In The View - Options - Oracle - General Section? |
|
Answer» After a SELECT query is executed, we must retrieve the rows from the Oracle server to your PC. We do not retrieve the rows all at once, nor do we retrieve them one at a time (UNLESS there is a LONG or LOB column involved). We retrieve the rows in blocks. The number of rows retrieved in each block is the number of rows you specify with "OCI Array Buffer Size". TOAD defaults to 25 because SQL*Plus defaults to 25. In my opinion, an optimal setting is more like 500 or 1000. Here is why: If your dataset has 1,000 rows, and your OCI Array Buffer size is set to 25, then TOAD has to make 40 (that's 1000 / 25) round trips across the NETWORK to retrieve all of the rows. So you can immediately see why 500 or 1000 is better. The only disadvantage to a higher setting of OCI Array Buffer Size is that TOAD must allocate memory to hold that many rows prior to each fetch. If that many rows are ACTUALLY FETCHED, there is no loss. On the other hand, if not that many rows are retrieved, then we allocated some memory that is not going to be released until the cursor is freed. Luckily, this is a trivial amout of memory, in the grand scheme of things. After a SELECT query is executed, we must retrieve the rows from the Oracle server to your PC. We do not retrieve the rows all at once, nor do we retrieve them one at a time (unless there is a LONG or LOB column involved). We retrieve the rows in blocks. The number of rows retrieved in each block is the number of rows you specify with "OCI Array Buffer Size". TOAD defaults to 25 because SQL*Plus defaults to 25. In my opinion, an optimal setting is more like 500 or 1000. Here is why: If your dataset has 1,000 rows, and your OCI Array Buffer size is set to 25, then TOAD has to make 40 (that's 1000 / 25) round trips across the network to retrieve all of the rows. So you can immediately see why 500 or 1000 is better. The only disadvantage to a higher setting of OCI Array Buffer Size is that TOAD must allocate memory to hold that many rows prior to each fetch. If that many rows are actually fetched, there is no loss. On the other hand, if not that many rows are retrieved, then we allocated some memory that is not going to be released until the cursor is freed. Luckily, this is a trivial amout of memory, in the grand scheme of things. |
|
| 3. |
Why Can Not I Add A New Record By Hitting The Down Arrow Key In The Data Tab? |
|
Answer» PLEASE UPGRADE your COPY of TOAD to at least version 7.4.0.3. This functionality has been RESTORED. Please upgrade your copy of TOAD to at least version 7.4.0.3. This functionality has been restored. |
|
| 4. |
How Do You Check Whether The Row Data Has Been Changed? |
|
Answer» The definitive way to DETERMINE whether a ROW has been dirtied is to handle the CHANGED event for the controls in a row. For example, if your grid row contains a TextBox control, you can respond to the control�s TextChanged event. Similarly, for check boxes, you can respond to a CHECKED Changed event. In the handler for these events, you maintain a list of the rows to be UPDATED. Generally, the best strategy is to track the primary keys of the affected rows. For example, you can maintain an ArrayList object that contains the primary keys of the rows to update. The definitive way to determine whether a row has been dirtied is to handle the changed event for the controls in a row. For example, if your grid row contains a TextBox control, you can respond to the control�s TextChanged event. Similarly, for check boxes, you can respond to a Checked Changed event. In the handler for these events, you maintain a list of the rows to be updated. Generally, the best strategy is to track the primary keys of the affected rows. For example, you can maintain an ArrayList object that contains the primary keys of the rows to update. |
|
| 5. |
What Is The Difference Between The System.web.ui.webcontrols.datagrid And And System.windows.forms.datagrid? |
|
Answer» The Web UI control does not inherently support master-detail data structures. As with other Web SERVER controls, it does not support two-way data binding. If you want to update data, you must write code to do this yourself. You can only edit one row at a time. It does not inherently support sorting, although it raises events you can handle in order to sort the grid contents. You can bind the Web Forms DataGrid to any object that SUPPORTS the IEnumerable interface. The Web Forms DataGrid control supports paging. It is easy to customize the APPEARANCE and layout of the Web Forms DataGrid control as compared to the WINDOWS Forms one. The Web UI control does not inherently support master-detail data structures. As with other Web server controls, it does not support two-way data binding. If you want to update data, you must write code to do this yourself. You can only edit one row at a time. It does not inherently support sorting, although it raises events you can handle in order to sort the grid contents. You can bind the Web Forms DataGrid to any object that supports the IEnumerable interface. The Web Forms DataGrid control supports paging. It is easy to customize the appearance and layout of the Web Forms DataGrid control as compared to the Windows Forms one. |
|
| 6. |
What Is A Datagrid Or Grid View? |
|
Answer» The DataGrid WEB SERVER control is a POWERFUL tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same TIME, the grid has a sophisticated object model that provides you with GREAT flexibility in how you display the data. The DataGrid Web server control is a powerful tool for displaying information from a data source. It is easy to use; you can display editable data in a professional-looking grid by setting only a few properties. At the same time, the grid has a sophisticated object model that provides you with great flexibility in how you display the data. |
|
| 7. |
How Can I See The Data In Nested Tables? |
|
Answer» TOAD 7.5 and up can show NESTED table data in popups from the data grids if you are using an 8.0 or higher Oracle client. The nested table data will appear in the grid cell as "(DATASET)". Right-click over this cell and CHOOSE "Popup EDITOR". TOAD 9.0.1 now supports nested table data in its "RUN as script" function. TOAD versions 7.4 and previous do not support nested table data due to a limitation in their data layer. TOAD 7.5 and up can show nested table data in popups from the data grids if you are using an 8.0 or higher Oracle client. The nested table data will appear in the grid cell as "(DATASET)". Right-click over this cell and choose "Popup editor". TOAD 9.0.1 now supports nested table data in its "run as script" function. TOAD versions 7.4 and previous do not support nested table data due to a limitation in their data layer. |
|
| 8. |
How Can I See Nested Object Data? |
|
Answer» TOAD 7.5 and up can show nested object type data in popups from the data grids if you are using an 8.0 or HIGHER Oracle client. Right-click on the cell that should contain the data and choose "POPUP EDITOR". TOAD 9.0.1 now supports nested object data in its "run as SCRIPT" FUNCTION. TOAD versions 7.4 and previous do not support nested object data due to a limitation in their data layer. TOAD 7.5 and up can show nested object type data in popups from the data grids if you are using an 8.0 or higher Oracle client. Right-click on the cell that should contain the data and choose "Popup editor". TOAD 9.0.1 now supports nested object data in its "run as script" function. TOAD versions 7.4 and previous do not support nested object data due to a limitation in their data layer. |
|
| 9. |
How Can I See Timestamp And Interval Data? |
|
Answer» TOAD 7.5 and up can show TIMESTAMP and INTERVAL data in its data grids if you are using a 9.0.1 or higher Oracle client. TOAD 9.0.1 supports TIMESTAMP and INTERVAL data in its "run as script" function. TOAD VERSIONS 7.4 and previous do not support TIMESTAMP and INTERVAL data DUE to a limitation in their data layer. To SEE timestamp/intervals in the "datatype" drop down in the Create/Alter Table window, and in the "Add Column" window, go to options ? datatypes, and make sure "Include Timestamp/Interval Types" is checked. TOAD 7.5 and up can show TIMESTAMP and INTERVAL data in its data grids if you are using a 9.0.1 or higher Oracle client. TOAD 9.0.1 supports TIMESTAMP and INTERVAL data in its "run as script" function. TOAD versions 7.4 and previous do not support TIMESTAMP and INTERVAL data due to a limitation in their data layer. To see timestamp/intervals in the "datatype" drop down in the Create/Alter Table window, and in the "Add Column" window, go to options ? datatypes, and make sure "Include Timestamp/Interval Types" is checked. |
|
| 10. |
Why Can Not I Set A Style In My Xls Saveas Exports Of Datagrid Data? |
|
Answer» Try upgrading to the current release of TOAD, as we have obtained an UPDATED XLS COMPONENT. If you are still experiencing the PROBLEM, you can do this: FORMAT ? CELLS ? NUMBER TAB ? change to Currency, Percentage, etc. Try upgrading to the current release of TOAD, as we have obtained an updated XLS component. If you are still experiencing the problem, you can do this: FORMAT ? CELLS ? NUMBER TAB ? change to Currency, Percentage, etc. |
|
| 11. |
How Do I Change The Grid Popup Editor Font? |
|
Answer» Another one from the list. Herald asked > I changed the font for the DATA GRIDS, so I could look at Unicode. Now I see the chosen font in the datagrid, but if I open the popup editor it still gives the old font. Is it possible to change this font also, I didn't FIND it in the options, or could you make the grid popup editor font the same as the data grid font. After much searching, Brad supplied the following obvious LOL solution : *Go to View → TOAD Options → Editor → Behavior. Another one from the list. Herald asked > I changed the font for the DATA Grids, so I could look at Unicode. Now I see the chosen font in the datagrid, but if I open the popup editor it still gives the old font. Is it possible to change this font also, I didn't find it in the options, or could you make the grid popup editor font the same as the data grid font. After much searching, Brad supplied the following obvious LOL solution : *Go to View → Toad Options → Editor → Behavior. |
|
| 12. |
How Do You Display An Editable Drop-down List? |
|
Answer» Displaying a drop-down LIST requires a template column in the grid. Typically, the ItemTemplate CONTAINS a control such as a data-bound Label control to show the current value of a field in the record. You then add a drop-down list to the EditItemTemplate. In Visual Studio, you can add a template column in the Property builder for the grid, and then use standard template editing to remove the default TextBox control from the EditItemTemplate and drag a DROPDOWNLIST control into it instead. ALTERNATIVELY, you can add the template column in HTML view. After you have created the template column with the drop-down list in it, there are two tasks. The first is to populate the list. The second is to preselect the appropriate item in the list � for example, if a book�s genre is set to �fiction,� when the drop-down list displays, you often want �fiction� to be preselected. Displaying a drop-down list requires a template column in the grid. Typically, the ItemTemplate contains a control such as a data-bound Label control to show the current value of a field in the record. You then add a drop-down list to the EditItemTemplate. In Visual Studio, you can add a template column in the Property builder for the grid, and then use standard template editing to remove the default TextBox control from the EditItemTemplate and drag a DropDownList control into it instead. Alternatively, you can add the template column in HTML view. After you have created the template column with the drop-down list in it, there are two tasks. The first is to populate the list. The second is to preselect the appropriate item in the list � for example, if a book�s genre is set to �fiction,� when the drop-down list displays, you often want �fiction� to be preselected. |
|
| 13. |
How Do You Hide The Columns? |
|
Answer» One WAY to have columns appear DYNAMICALLY is to create them at design TIME, and then to hide or show them as needed. You can do this by setting a columnï's Visible PROPERTY. One way to have columns appear dynamically is to create them at design time, and then to hide or show them as needed. You can do this by setting a columnï's Visible property. |
|
| 14. |
How Do You Apply Specific Formatting To The Data Inside The Cells? |
|
Answer» You cannot specify formatting for columns generated when the grid's AutoGenerateColumns PROPERTY is set to TRUE, only for bound or template columns. To format, set the COLUMN's DataFormatString property to a string-formatting EXPRESSION suitable for the data TYPE of the data you are formatting. You cannot specify formatting for columns generated when the grid's AutoGenerateColumns property is set to true, only for bound or template columns. To format, set the column's DataFormatString property to a string-formatting expression suitable for the data type of the data you are formatting. |
|
| 15. |
How Do You Customize The Column Content Inside The Datagrid? |
|
Answer» If you WANT to customize the content of a column, MAKE the column a template column. Template columns work LIKE item templates in the DataList or Repeater control, except that you are DEFINING the layout of a column RATHER than a row. If you want to customize the content of a column, make the column a template column. Template columns work like item templates in the DataList or Repeater control, except that you are defining the layout of a column rather than a row. |
|
| 16. |
How To Refresh The Data In Datagrid Automatically? |
|
Answer» For refreshing DATA in data GRID control we can USE chasing TECHNIQUE. For refreshing data in data grid control we can use chasing technique. |
|
| 17. |
How To Add Datetime Control In Ormal Datagrid Server Control? |
|
Answer» cvv using TEMPLATE column we can very WELL ADD date time control as CHILD control. cvv using template column we can very well add date time control as child control. |
|
| 18. |
How Can I View The Chinese And Japanese Character Sets Through Toad? |
|
Answer» Reset NLS_LANG on your Client machine to AMERICAN_AMERICA.JA16SJIS to view Japanese and AMERICAN_AMERICA.ZHT16BIG5 to view Chinese. Then change the font script for each LANGUAGE by right CLICKING on the DATA and choosing Grid Options | Data Grids - Visual | Fonts | Grid and choose ARIAL Unicode MS as the Font. This CHANGES the script to Japanese for Japanese characters or to ChineseBig5 for Chinese. Reset NLS_LANG on your Client machine to AMERICAN_AMERICA.JA16SJIS to view Japanese and AMERICAN_AMERICA.ZHT16BIG5 to view Chinese. Then change the font script for each language by right clicking on the data and choosing Grid Options | Data Grids - Visual | Fonts | Grid and choose Arial Unicode MS as the Font. This changes the script to Japanese for Japanese characters or to ChineseBig5 for Chinese. |
|
| 19. |
How Do I Copy A Whole Row Or Multiple Rows Of Data? |
|
Answer» To copy one row of data, PUT your cursor in a cell in the grid and press Ctrl+Insert. This will copy the row and its column HEADERS to the clipboard. To copy multiple rows of data, right-click in the grid and choose "Allow multiselect". Use Shift-Click to select multiple ADJACENT rows, or use Ctrl+Click to select individual, non-adjacent rows. Press Ctrl+C. This will copy all of the rows and their column headers to the clipboard. To copy a single cell's data, turn off "Allow multiselect". Click on the cell you want to copy and press Ctrl+C. The FOLLOWING table gives details of what happens with the various copy KEYS and multi-select options. Multi-Select OFF Multi-Select ON EDIT COPY CTRL+C CTRL+INS EDIT COPY CTRL+C CTRL+INS One Cell Highlighted Cell only Cell only Row plus headings Cell only Cell Only Row plus headings Many Cells(rows) highlighted N/A N/A N/A All highlighted rows plus headings All highlighted rows plus headings All highlighted rows plus headings To copy one row of data, put your cursor in a cell in the grid and press Ctrl+Insert. This will copy the row and its column headers to the clipboard. To copy multiple rows of data, right-click in the grid and choose "Allow multiselect". Use Shift-Click to select multiple adjacent rows, or use Ctrl+Click to select individual, non-adjacent rows. Press Ctrl+C. This will copy all of the rows and their column headers to the clipboard. To copy a single cell's data, turn off "Allow multiselect". Click on the cell you want to copy and press Ctrl+C. The following table gives details of what happens with the various copy keys and multi-select options. Multi-Select OFF Multi-Select ON EDIT COPY CTRL+C CTRL+INS EDIT COPY CTRL+C CTRL+INS One Cell Highlighted Cell only Cell only Row plus headings Cell only Cell Only Row plus headings Many Cells(rows) highlighted N/A N/A N/A All highlighted rows plus headings All highlighted rows plus headings All highlighted rows plus headings |
|
| 20. |
Why Can Not I Add An Entry Via The Grid For A Table Containing A Clob Column? |
|
Answer» In older versions of TOAD, the grid is limited to adding/modifying CLOB's for existing records. This should be WORKING in TOAD 7.6. Note, however, that since TOAD does not support Unicode databases, that there are OFTEN errors when viewing CLOB data in the data GRIDS for databases with Unicode CHARACTER SETS. In older versions of TOAD, the grid is limited to adding/modifying CLOB's for existing records. This should be working in TOAD 7.6. Note, however, that since TOAD does not support Unicode databases, that there are often errors when viewing CLOB data in the data grids for databases with Unicode character sets. |
|
| 21. |
In Datagrid, Is It Possible To Add Rows One By One At Runtime. That Means After Entering Data In One Row Next Row Will Be Added? |
|
Answer» Yes, for this you have to use datatable and after inserting the first row in datatable You have to BIND that datatable to the grid and next TIME , first you have to ADD the row in datatable and next bind it to datagrid. KEEP on doing. You have to MAINTAIN the datatable state. Yes, for this you have to use datatable and after inserting the first row in datatable You have to bind that datatable to the grid and next time , first you have to add the row in datatable and next bind it to datagrid. keep on doing. You have to maintain the datatable state. |
|
| 22. |
Difference Between Datagrid, Datalist And Repeater.? |
|
Answer» Similarities: They are all ASP.NET DATA Web controls. They have common properties like:
When the DataSource Property of a Datagrid is assigned to a DataSet then each DataRow present in the DataRow Collection of DataTable is assigned to a corresponding DataGridItem. Difference: Datagrid: The HTML code generated has an HTML TABLE element created for the particular DataRow and is a tabular representation with Columns and Rows. Datagrid has a in-built support for Sort, Filter and paging the Data. Datalist: An Array of Rows and based on the TEMPLATE Selected and the RepeatColumn Property value The NUMBER DataSource records that appear per HTML Repeater Control: The Datarecords to be displayed depend upon the Templates SPECIFIED and the only HTML generated accordingly. Repeater does not have in-built support for Sort, Filter and paging the Data. Similarities: They are all ASP.NET data Web controls. They have common properties like: When the DataSource Property of a Datagrid is assigned to a DataSet then each DataRow present in the DataRow Collection of DataTable is assigned to a corresponding DataGridItem. Difference: Datagrid: The HTML code generated has an HTML TABLE element created for the particular DataRow and is a tabular representation with Columns and Rows. Datagrid has a in-built support for Sort, Filter and paging the Data. Datalist: An Array of Rows and based on the Template Selected and the RepeatColumn Property value The number DataSource records that appear per HTML Repeater Control: The Datarecords to be displayed depend upon the Templates specified and the only HTML generated accordingly. Repeater does not have in-built support for Sort, Filter and paging the Data. |
|
| 23. |
Ado.net Code Showing Dataset Storing Multiple Tables? |
Answer»
Dim m_adptEmp As SqlDataAdapter: Private Sub Page_Load(ByVal SENDER As System.Object, _ByValeAsSystem.EventArgs)HandlesMyBase.Load<BR> DimEmpConnAsNewSqlConnection_<BR> ("server=(LOCAL);database=Employees;Trusted_Connection=yes") Dim m_adptEmp As SqlDataAdapter: Private Sub Page_Load(ByVal sender As System.Object, _ByValeAsSystem.EventArgs)HandlesMyBase.Load<BR> DimEmpConnAsNewSqlConnection_<BR> ("server=(local);database=Employees;Trusted_Connection=yes") |
|
| 24. |
Difference Between Dataset And Datareader.? |
Answer»
Dataset: Datareader: |
|
| 25. |
What Is Dataset Object? Explain The Various Objects In Dataset.? |
Answer»
|
|
| 26. |
What Are The Different Types Of Columns That Exist In Datagrid? |
|
Answer» The different column types used in DataGrid are as follows:
The different column types used in DataGrid are as follows: |
|
| 27. |
How Can The Appearance Be Controlled In Datagrid? |
Answer»
|
|
| 28. |
What Is The Procedure Followed To Add Attributes In <tr> Tag? |
Answer»
|
|
| 29. |
What’s The Difference Between The System.web.ui.webcontrols.datagrid And System.windows.forms.datagrid? |
Answer»
|
|
| 30. |
Explain The Procedure To Display An Editable Drop-down List? |
|
Answer» To display an editable drop-down list it requires:
To display an editable drop-down list it requires: |
|
| 31. |
What Are The Tasks That Are Involved After The Drop-down List Gets Created? |
Answer»
|
|
| 32. |
Write A Program To Manually Define The Columns In .netgrid? |
Answer»
The program that will make the columns is: DataGridCheckBoxColumn // to define the boolean values The program that will make the columns is: DataGridCheckBoxColumn // to define the boolean values |
|
| 33. |
Write A Program To Show Different Selection Modes In Data Grid? |
Answer»
The program is as follows: <DataGrid ItemsSource="{Binding_Products}" The program is as follows: <DataGrid ItemsSource="{Binding_Products}" |
|
| 34. |
Write A Program To Do Column Sorting, Reordering And Resizing? |
Answer»
The properties used in this are as follows: CanUserReorderColumns // this enables or disables the re-ordering of the column The properties used in this are as follows: CanUserReorderColumns // this enables or disables the re-ordering of the column |
|
| 35. |
How Does The Binding Work In Datagrid? |
Answer»
|
|
| 36. |
Write A Program To Display The Use Of Multiple Columns In Datagrid? |
Answer»
The program that shows the creation of multiple columns in DataGrid is as follows: public struct MyData The program that shows the creation of multiple columns in DataGrid is as follows: public struct MyData |
|
| 37. |
What Are The Ways That Properties Can Be Shown In Datagrid? |
Answer»
The ways are being shown as: DataGridTextColumn col1 = new DataGridTextColumn(); The ways are being shown as: DataGridTextColumn col1 = new DataGridTextColumn(); |
|
| 38. |
Write A Program That Adds Two Columns Binded With The Same Properties And Having Column Headings Using Xaml? |
Answer»
<DataGrid Height="50" <DataGrid Height="50" |
|
| 39. |
What Is The Purpose Of External Ienumerables Used In Datagrid? |
Answer»
The example of holding the object type is shown below: public class Person Collection of these objects NEEDS to be created for the listing of them: List<Person> myList = new List<Person>(); To display the collection the DataGrid object is used like: dataGrid.ItemsSource=makeList; The example of holding the object type is shown below: public class Person Collection of these objects needs to be created for the listing of them: List<Person> myList = new List<Person>(); To display the collection the DataGrid object is used like: dataGrid.ItemsSource=makeList; |
|
| 40. |
How Is It Possible To Edit The Data In Datagrid? |
Answer»
|
|
| 41. |
What Is The Difference Between Windows Forms And Web Forms Datagrid Control? |
Answer»
|
|
| 42. |
Write A Program To Control The Column Width, Height And Alignment Of Datagrid? |
Answer»
The property can be set like: <asp:BoundColumn DataField="title" SortExpression="title" The property can be set like: <asp:BoundColumn DataField="title" SortExpression="title" |
|
| 43. |
What Are The Ways In Which The Functionalities Can Be Added To Datagrid Control Data Source? |
Answer»
|
|
| 44. |
Why Is The Update Strategy Not Preferred To Be Used In Datagrid Control? |
Answer»
|
|
| 45. |
What Is The Purpose Of Using Datagrid Control? |
Answer»
|
|