Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
2938 | Feb 21,2003 10:46 AM UTC | Feb 24,2003 12:13 PM UTC | WinForms | 7 |
![]() |
Tags: GridControl |
//set second column in the first child to checkbox
GridHierarchyLevel level = this.gridDataBoundGrid1.Binder.GetHierarchyLevel(1); //first child
GridStyleInfo style = level.GridBoundColumns[1].StyleInfo;//second column
style.CellType = "ComboBox";
style.ValueMember = "Col2"; //name of value member column
style.DisplayMember = "Col1"; //name of value member column
style.DataSource = dt; //datatable with at least columns named Col1 and Col2
style.ShowButtons = GridShowButtons.Show;
this.gridDataBoundGrid1.Refresh();
> //set second column in the first child to checkbox
> GridHierarchyLevel level = this.gridDataBoundGrid1.Binder.GetHierarchyLevel(1); //first child
> GridStyleInfo style = level.GridBoundColumns[1].StyleInfo;//second column
> style.CellType = "ComboBox";
> style.ValueMember = "Col2"; //name of value member column
> style.DisplayMember = "Col1"; //name of value member column
> style.DataSource = dt; //datatable with at least columns named Col1 and Col2
> style.ShowButtons = GridShowButtons.Show;
>
> this.gridDataBoundGrid1.Refresh();
>
>
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.