Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

 

.NET FAQ collection

  • ASP.NET FAQ | Windows Forms FAQ | Windows Forms 2.0 FAQ | AspNetFaq.com FAQ | System.Web.Mail FAQ | System.Net.Mail FAQ

    Windows Forms 2.0 FAQ


    DataGrid


    How do I hide a DataGrid's gridlines of or set them to a particular color?
    How do I color a cell in a DataGrid depending upon its value or some external method?
    How do I determine the number of rows in a DataGrid?
    How do I find the top-left visible cell in a DataGrid?
    How do I get rid of the error icon that appears when there is an error editing a DataGrid?
    How do I display negative values in a DataGrid with a CR suffix, instead of a minus sign prefix?
    How do I specially color only the current cell of a read-only DataGrid?
    How do I change the font in a DataGrid cell or row?
    How do I control the cursor over a DataGrid?
    How do I set default values for new rows in a DataGrid?
    How do I make the DataGrid column be blank and not display "(null)" as the default value?
    How do I display rows in a DataGrid in a free-form layout using TextBoxes on a Panel?
    How do I prevent the plus-minus icon that appears next to the row header when I have a DataGrid bound to a data source that has a relation defined?
    How do I display text in the row header column of a DataGrid?
    How do I change the width of the row or column headers in a DataGrid or hide them completely?
    How do I automatically size the row heights in a DataGrid?
    How do I hide a column in a DataGrid?
    How do I set the width of a column in a DataGrid?
    How do I automatically size columns in a DataGrid so they fill the grid's client area?
    How do I programmatically set the height of a row in a DataGrid?
    How do I add and remove columns in my DataGrid without modifying the DataTable data source?
    How do I automatically size a column in a DataGrid?
    How do I make the last column of a DataGrid fill the remaining client area?
    How do I display a column of Buttons or ComboBox buttons in a DataGrid?
    How do I create a ComboBox column in a DataGrid?
    How do I create a column of bitmaps in a DataGrid?
    How do I use the DataColumn.Expression property to add a computed or combined column to a DataGrid?
    How do I format a date column in a DataGrid?
    How do I create a column of icons in my DataGrid?
    How do I put a CheckBox in a column of a DataGrid?
    How do I programmatically scroll a DataGrid to a particular row?
    How do I tell whether a DataGrid's scrollbar is visible?
    How do I force the vertical scrollbar in a DataGrid to always be visible?
    How do I bind a DataGrid to a data source without using any wizards?
    How do I bind a DataGrid to an ArrayList of objects?
    How do I bind two DataGrids in a master-detail relationship?
    How do I use data from two DataTables in a single DataGrid to display join of the two tables?
    How do I display master-details-subdetails in three separate DataGrids?
    How do I add an unbound column to a DataGrid that is bound to a data source?
    How do I get notification of the changing of a value in a column of ComboBoxes in a DataGrid?
    How do I make a column in a DataGrid automatically increment as new rows are added?
    How do I prevent a particular cell in a DataGrid from being editable?
    How do I perform validation on a per-cell basis in a DataGrid?
    How do I move rows in a DataGrid by dragging the row header cell?
    How do I subclass the TextBox of a column in a DataGrid so that I can implement custom behavior?
    How do I tell if a DataGrid's current row has changed and whether the user is on the AddNew row?
    How do I determine whether a CheckBox in a DataGrid is checked?
    How do I prevent moving to the next cell in a DataGrid when the user is actively editing the cell and presses Enter?
    How do I implement OLE drag-and-drop between a DataGrid and another OLE drag-and-drop object that supports the Text format?
    How do I get tooltips to vary by cell in a DataGrid?
    How do I make a DataGrid have no current cell?
    How do I make a DataGrid never have an active edit cell and always select whole rows as in a browser-style grid?
    How to I get tabbing to work properly in a DataGrid that has hidden columns (i.e., column width is zero)?
    How do I catch a double-click event in a DataGrid?
    How do I prevent the user from resizing columns in a DataGrid?
    How do I catch the values changing in a DataGridBoolColumn in a DataGrid?
    How do I programmatically select a row in a DataGrid and have no cell active, just like when the user clicks on a row header?
    How do I put up a confirmation dialog when the user tries to delete a row in the DataGrid by clicking on the row header and pressing the Delete key?
    How do I make the Enter key behave like the Tab key in a DataGrid, moving to the next cell?
    If the user selects a row in a DataGrid, then scrolls it out of view with the mouse wheel, the user cannot get the selected row back into view. How do I work around this limitation?
    How do I catch when the user clicks off a DataGrid, for example to close the form?
    How do I get a CheckBox column in a DataGrid to respond to the first click?
    How do I use events to restrict key input in DataGrid cells?
    How do I format columns in a DataGrid without adding DataGridColumnStyles?
    How do I make a DataGrid column automatically adjust keyboard input? For example, typing 12312002 should be automatically adjusted as the date 12/31/2002.
    How do I prevent the cells in a DataGrid from being edited without deriving GridColumnStyle?
    Why does a column with custom style in a DataGrid not receive focus when Tab is pressed to enter the column?
    How do I detect when a DataGrid cell starts being edited, as opposed to when it becomes the current cell?
    How do I prevent a DataGrid from allowing new rows to be added, and so suppress display of the append row (i.e., the row at the end with an asterisk)?
    How do I prevent sorting a single column in a DataGrid?
    How do I get a DataGrid's column header text in a MouseUp event?
    How do I restrict the keystrokes that are accepted in a DataGrid column?
    How do I get the selected text in the active cell of a DataGrid?
    How do I determine the row or column of a DataGrid that has been clicked on?
    How do I determine the row and column of the current cell in a DataGrid?
    How can I enable column selections in a DataGrid?
    How do I iterate through all the rows and columns in a DataGrid?
    How do I allow the user to select cell ranges in a DataGrid using the mouse?
    How do I retrieve the current row from a DataTable to which a DataGrid is bound after the grid has been sorted?
    How do I programmatically select a row in DataGrid?
    How do I select an entire row when the user clicks in a DataGrid?
    How do I determine which rows are selected in a DataGrid?
    How do I prevent a DataGrid from highlighting cells when the user clicks in it?
    How do I translate a point to a cell in a DataGrid?
    How do I perform custom handling of a double-click in a DataGrid's column header cell?
    Why did I lose the settings on a DataGrid set during design-time?
    How do I add custom ColumnStyles to the designer so I can use them in a DataGrid at design time?

     


    DotNet News, Tutorial and Code samples :

    Why C# interface inheritance makes sense: see LINQ...
    How Linq extension methods benefit from interfaces inheriting from interfac...En savoir plus

    mardi 22 mai 2012 | The Code Project Latest Articles

    Marée humaine à Montréal en soutien au conflit étudiant
    Des dizaines de milliers de personnes étaient réunies mardi au centre de Montréal au début d'une manifestation marquant le centième jour du conflit étudiant au Québec.
    En savoir plus

    mardi 22 mai 2012 | Le Monde.fr : à la Une

    Des balles contre des pierres : la violence ordinaire en Cisjordanie
    Une vidéo postée sur Youtube dimanche montre la violence d'un raid de colons israéliens armés contre un village palestinien du sud de Naplouse, en Cisjordanie, qui ouvrent le feu alors qu'ils essuient des jets de pierres.
    En savoir plus

    mardi 22 mai 2012 | Le Monde.fr : à la Une

    Aubry et Ayrault, main dans la main
    La première secrétaire et le premier ministre ont affiché leur unité lors du lancement par le PS de sa campagne des élections législative...En savoir plus

    mardi 22 mai 2012 | Le Monde.fr : à la Une

    Bull de nouveau confronté au scandale Amesys
    Faisant face à une enquête judiciaire, la société française se défend d'avoir structuré l'architecture de "l'armée électronique" de Kadhafi.
    En savoir plus

    mardi 22 mai 2012 | Le Monde.fr : à la Une

    Accord au sein de l'UE pour financer des grands travaux
    L'Union européenne va pouvoir débloquer une enveloppe de 230 millions d'euros pour inciter des capitaux privés à investir dans des projets d'infrastructures stratégiques.
    En savoir plus

    mardi 22 mai 2012 | Le Monde.fr : à la Une

    Show previous articles
  • .NET FAQs
    Cher Entreprenaute, vous pouvez trouver ici votre passeport pour l'économie numérique
    ERP 360

    Dernières mises à jour

    Visual Log Parser 1.0
    GUI for the powerfull log parser.
    download Visual Log Parser GUI Download now
    Open Shopping Cart 1.0
    Open Shopping Cart, composant asp.net pour la gestion d'un panier de commande
    download open shopping cart for asp.net component Download now
    .NET (dotnet) FAQ
    A growing knowledge base about ASP.NET, Windows Forms and .NET 2.
    ASP.NET FAQ Check it now