grid.CheckedBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hrvoje Voda

    grid.CheckedBox

    I have this code for searching through grid and putting a result into
    another grid where I defined a checkBox.

    Line with mark * is where I need to define where in gridGroups row I have to
    put a checkBoxValue = true.

    void ColumnDrawGroup sChecked (

    Syncfusion.Wind ows.Forms.Grid. GridStyleInfo gridStyle, System.Data.Dat aRow
    row )

    {

    gridStyle.CellT ype = "CheckBox";

    gridStyle.CellV alueType = typeof(bool);


    DataSetAccounts .UsersRow rowGroups =

    GetSelectedRow( gridUsers.Grid ) as DataSetAccounts .UsersRow;

    if ( rowGroups != null )

    {

    DataSetAccounts .GroupsRow rowGroup =

    rowGroups.GetPa rentRow( "GroupsUsersGro ups" ) as DataSetAccounts .GroupsRow ;

    if ( rowGroup != null )

    {

    * Here I need to determine where to put CellValue to true

    gridStyle.CellV alue = true;

    }

    }

    }



    Hrcko


  • Dhanushka Nuwan

    #2
    Re: grid.CheckedBox

    Hi Hrvoje;

    The following should work;

    DataColumn checkboxColumn = table.Columns["CheckBoxColumn Name"];

    // Then in the * mark
    rowGroup[checkboxColumn] = true;

    Regards,
    Dhanushka



    "Hrvoje Voda" <hrvoje.voda@lu atech.com> wrote in message
    news:d69kek$c71 $1@ss405.t-com.hr...[color=blue]
    > I have this code for searching through grid and putting a result into
    > another grid where I defined a checkBox.
    >
    > Line with mark * is where I need to define where in gridGroups row I have[/color]
    to[color=blue]
    > put a checkBoxValue = true.
    >
    > void ColumnDrawGroup sChecked (
    >
    > Syncfusion.Wind ows.Forms.Grid. GridStyleInfo gridStyle, System.Data.Dat aRow
    > row )
    >
    > {
    >
    > gridStyle.CellT ype = "CheckBox";
    >
    > gridStyle.CellV alueType = typeof(bool);
    >
    >
    > DataSetAccounts .UsersRow rowGroups =
    >
    > GetSelectedRow( gridUsers.Grid ) as DataSetAccounts .UsersRow;
    >
    > if ( rowGroups != null )
    >
    > {
    >
    > DataSetAccounts .GroupsRow rowGroup =
    >
    > rowGroups.GetPa rentRow( "GroupsUsersGro ups" ) as DataSetAccounts .GroupsRow[/color]
    ;[color=blue]
    >
    > if ( rowGroup != null )
    >
    > {
    >
    > * Here I need to determine where to put CellValue to true
    >
    > gridStyle.CellV alue = true;
    >
    > }
    >
    > }
    >
    > }
    >
    >
    >
    > Hrcko
    >
    >[/color]


    Comment

    • Hrvoje Voda

      #3
      Re: grid.CheckedBox

      This works, but it creates a new grid with columns.
      I want to put a check value into available grid.

      Hrcko

      "Dhanushka Nuwan" <shadhanu@yahoo .com> wrote in message
      news:ORbi$RgWFH A.132@TK2MSFTNG P14.phx.gbl...[color=blue]
      > Hi Hrvoje;
      >
      > The following should work;
      >
      > DataColumn checkboxColumn = table.Columns["CheckBoxColumn Name"];
      >
      > // Then in the * mark
      > rowGroup[checkboxColumn] = true;
      >
      > Regards,
      > Dhanushka
      >
      >
      >
      > "Hrvoje Voda" <hrvoje.voda@lu atech.com> wrote in message
      > news:d69kek$c71 $1@ss405.t-com.hr...[color=green]
      >> I have this code for searching through grid and putting a result into
      >> another grid where I defined a checkBox.
      >>
      >> Line with mark * is where I need to define where in gridGroups row I have[/color]
      > to[color=green]
      >> put a checkBoxValue = true.
      >>
      >> void ColumnDrawGroup sChecked (
      >>
      >> Syncfusion.Wind ows.Forms.Grid. GridStyleInfo gridStyle,
      >> System.Data.Dat aRow
      >> row )
      >>
      >> {
      >>
      >> gridStyle.CellT ype = "CheckBox";
      >>
      >> gridStyle.CellV alueType = typeof(bool);
      >>
      >>
      >> DataSetAccounts .UsersRow rowGroups =
      >>
      >> GetSelectedRow( gridUsers.Grid ) as DataSetAccounts .UsersRow;
      >>
      >> if ( rowGroups != null )
      >>
      >> {
      >>
      >> DataSetAccounts .GroupsRow rowGroup =
      >>
      >> rowGroups.GetPa rentRow( "GroupsUsersGro ups" ) as
      >> DataSetAccounts .GroupsRow[/color]
      > ;[color=green]
      >>
      >> if ( rowGroup != null )
      >>
      >> {
      >>
      >> * Here I need to determine where to put CellValue to true
      >>
      >> gridStyle.CellV alue = true;
      >>
      >> }
      >>
      >> }
      >>
      >> }
      >>
      >>
      >>
      >> Hrcko
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...