Tips / FAQ |
| Changing the default text editor |
| Can I change the default text editor in the edit dialog to be HTML |
| Show Answer |
| Trapping a double click on the grid |
| How do I override the default ondblclick behavior which opens the edit dialog |
| Show Answer |
| Adding additional heading information |
| How can I add additonal heading information to the grid |
| Show Answer |
| Adding buttons to the toolbar |
| Can I add my own buttons to the toolbar. |
| Show Answer |
| Selecting/sorting by the day of the week |
| I am looking to sort by both day of the week, and purely by date.
|
| Show Answer |
| Selecting multiple rows |
| Can I select multiple rows. |
| Show Answer |
| Changing the grid style |
| Can I change the grid style without having to set it for each column. |
| Show Answer |
| Script Error Notification |
| I'm not getting any notification of scripting errors on my page |
| Show Answer |
| Referencing grid columns |
| Do I have easy access to values in other cells of the grid during a transform
That is,when I set a transform can I evaluate the value of another cell in the grid and then set the value of the current cell. |
| Show Answer |
| Initialising the value of a date/time in the edit dialog |
| How can I initialise the value of a date and time field in the edit dialog |
| Show Answer |
| Currency formatting |
| How can I format a display column in the format $99,999,999.99 |
| Show Answer |
| Scrolling the grid but not the toolbar |
| Is it possible to scroll the grid but to keep the toolbar in a fixed position. |
| Show Answer |
| Adding noWrap to grid columns |
| How can I keep the height of my grid rows constant by preventing the data in the cells from wrapping. |
| Show Answer |
| Performing server-side processing in response to an edit |
| I want to send an email whenever a record gets changed, how can I do this ? |
| Show Answer |
| Controlling the number of records selected |
| I have a very large view of nearly a million rows. I want to be able to allow my users to select from the data source but prevent them from simply selecting all the records. |
| Show Answer |
| Changing the default search dialog match option |
| The Search dialog has 2 options "Match all of the search criteria" and "Match at least one of the search criteria". By default it shows "Match all of the search criteria", how do I make the second option to be the default value. |
| Show Answer |
| Setting a column style based on a value in an adjacent column |
| The Part Number column needs to be formatted based on the Short Column. If the Short Column is 1, make the background red, if it is 0 leave the default, and if it is 2, make it yellow.
Can I do this ? |
| Show Answer |
| Setting the alignment of a nested grid |
| My nested grid ia appearing right-aligned within the master grid. How can I change this to left alignment? |
| Show Answer |
| Hiding '+' image on a nested grid where the child contains no rows |
| How do I hide the '+' image on a nested grid where the corresponding child does not contain any rows? |
| Show Answer |
| Adding line numbering to the grid |
| Can I add line numbering to the grid ? |
| Show Answer |
| Applying a password style to an input box in an edit dialog |
| How can I make an input box in the edit dialog into a password control where entered characters appear as '*'? |
| Show Answer |
| Displaying a time in 12 hour format |
| How can I display a time in 12 hour format ? |
| Show Answer |
| Changing the table borders and alternating row colour style |
| I want to be able to alternate the grid row colours every 2 rows and show only vertical lines, can I do this. |
| Show Answer |
| Drag and Drop within a frame |
| If my grid is inside a <FRAME> or <IFRAME> then the "Drag and Drop" feature does not work. |
| Show Answer |
| Grid Navigation Using Arrow Keys |
| Can I use the arrow keys to move around the grid? |
| Show Answer |
| Printing a single row |
| I would like to be able to print a single grid row |
| Show Answer |
| Column headings on each page when printing |
| When I print the grid can I control the number of rows on each page and print the column headings at the top of each page. |
| Show Answer |
| Using SQL Server "User Defined Functions" |
| I notice that in one of your web site examples you use "User Defined Functions" to present composite data in grid cells using the following selectPart
selectPart = ["title_id", "pubdate", "title", "dbo.titleRoyaltyandQty(title_id)"] Is the source code for these functions available |
| Show Answer |
| Multiple nested grids on the same level |
| Can I have more than one nested grid on the same level. |
| Show Answer |
| Collapsing nested grids programatically |
| I have a nested grid that I am using that needs to collapse any expanded rows when a different row is expanded. Can this be done? |
| Show Answer |
| Selecting Multiple Rows with Control & Shift Click |
| Can I select multiple rows within DbNetGrid using the standard Windows Control & Shift select behaviour? |
| Show Answer |
| Adding a title to the Edit Dialog |
| I am using a tree view to edit data. Sometimes it is confusing to decide which record in which table I am editing. I would like to programmatically add a custom title to the edit dialog screen. |
| Show Answer |
| Freezing columns |
| Can I fix a certain number of columns on the left of a grid and have columns on the right scroll relative to these columns. |
| Show Answer |
| Adding a timestamp to an edit |
| How can I record the date a record was added or inserted |
| Show Answer |
| Grid does not display data |
| When I run an application no grid is displayed, only the toolbar displays with 'undefined' next to some of the buttons. |
| Show Answer |
| Format Numbers with Thousand Seperators |
| I want to format a number to appear with seperators for the thousands. Eg; 123,456,789.23 |
| Show Answer |
| Moving to a specified row on another grid page |
| How can I allow the user to enter a key value and then find & highlight the matching row - even when it may be on another page? |
| Show Answer |
| Display a single record over multiple rows |
| Can I display a second row of data for each record in the grid |
| Show Answer |
| Page Totalisation |
| Can I show a page total for a numeric grid column? |
| Show Answer |
| Grid Totalisation |
| Can I show the grand total for a particular column at the foot of each grid page? |
| Show Answer |
| Select Rows for Printing using Checkboxes |
| I would like to include a checkbox on ech row of the grid and use this checkbox to mark those rows which I want to include on the printed output. |
| Show Answer |
| Using LDAP as a data source |
| Is it possible to query information from an LDAP (Lightweight Directory Access Protocol) data source? |
| Show Answer |
| Vertical Heading Text |
| I would like to display the heading text vertically. Is this possible? |
| Show Answer |
| Deleting from a master grid if there are records present in a linked grid |
| I have a page containing linked grids and I want to delete records from the master grid. However, the delete button in the master is disabled if there are records in the linked grid. I have defined a delete cascade using triggers so this restriction is not necessary for me. Can I get around it? |
| Show Answer |
| Positioning the grid on the last inserted record |
| I would like the grid to highlight the last record which I have inserted, rather than reload the grid and display the first record. Is this possible? |
| Show Answer |
| Using DbNetGrid with a stored procedure |
| Can I use a stored procedure as a data source for DbNetGrid |
| Show Answer |
| Applying changes to the printed grid |
| I have inserted an additional title row in my grid, but these changes are not displayed when I print the grid. |
| Show Answer |
| Integrating DbNetGrid with ASP.NET authentication |
| Is there a way to control the editing capability of DbNetGrid based on the user name. |
| Show Answer |
| Adding an image to the grid |
| Can I add an image to the grid based on a text value in the cell |
| Show Answer |
| Nested and Linked Grids |
| Can I have a nested and linked grid associated with the same parent |
| Show Answer |
| Toolltips in the edit dialog |
| Can I add my own tooltips to the controls in the edit dialog |
| Show Answer |
| Passing information from another page |
| How can I set grid properties by passing information from another page |
| Show Answer |
| Dealing with large amounts of text |
| Can I reduce the amount of space taken by large text fields. |
| Show Answer |
