bound and unbound datagrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shibili
    New Member
    • Jul 2010
    • 4

    bound and unbound datagrid

    i don't know anything about c# datagrid, first time user

    i want a data grid with two columns
    one combo and one text box
    Eg. account head and amount,I want to select account head and enter amount. Accound head is a combobox fill from a table achead with columns acheadid, achead. In New mode i want a grid with two columns and a blank row. i will select achead and enter amount. if both fileds are entered then a row increment. In Edit Mode i want to display all entered fields from table and a blank row at bottom for enter new ones
  • maddyromeo
    New Member
    • Jul 2010
    • 22

    #2
    You want to embed TextBox and ComboBox.....

    TextBox and Bool columns can be embed in DataGrid directly from the classes provided by "DataGridTextBo xColumn" class and "DataGridBoolCo lumn"
    class respectively from the .net library classes.


    To get the ComboBox column in a DataGrid you have to write your own class by subclassing the abstract "DataGridColumn Style" like

    public class DataGridComboBo xColumn : DataGridColumnS tyle

    and you must implement atleast 8 methods,,



    for more information visit




    /////////////
    this answer is upto my knowledge..plea se excuse for any mistakes made....

    i don't know whether DataGridComboBo xColumn class is added in latest versions of .net

    Comment

    Working...