Bind web forms datagrid to Dataset??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Bind web forms datagrid to Dataset??

    Can I bind a web form datagrid to a dataset? How would I do it at runtime?
    Thanks,
    VM


  • Eliyahu Goldin

    #2
    Re: Bind web forms datagrid to Dataset??

    Sure you can. Just assign datagrid properties DataSource and DataMember, add
    columns for the fields and call DataBind();

    HTH,

    Eliyahu

    <VM> wrote in message news:OvFmZPuRDH A.2892@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Can I bind a web form datagrid to a dataset? How would I do it at runtime?
    > Thanks,
    > VM
    >
    >[/color]


    Comment

    • Guest's Avatar

      #3
      Re: Bind web forms datagrid to Dataset??

      Thanks. And is it possible to change the size of the columns and the column
      headers when the grid is loading(at runtime)?

      VM


      "Eliyahu Goldin" <removemeegoldi n@monarchmed.co m> wrote in message
      news:ODYAaquRDH A.2332@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Sure you can. Just assign datagrid properties DataSource and DataMember,[/color]
      add[color=blue]
      > columns for the fields and call DataBind();
      >
      > HTH,
      >
      > Eliyahu
      >
      > <VM> wrote in message news:OvFmZPuRDH A.2892@TK2MSFTN GP10.phx.gbl...[color=green]
      > > Can I bind a web form datagrid to a dataset? How would I do it at[/color][/color]
      runtime?[color=blue][color=green]
      > > Thanks,
      > > VM
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...