Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Matt #1
Re: how to check controls that on datagrid header
Anyone know why when I loop thru my datagrid item list I don't see my
header or footer? I only see the item and alternatingitem types.
The footer definitely exists because I put a dropdownlist in it and
I've captured the index change event in my code behind. It's during
this code that I'm trying to access the footer item and it doesn't
show up.
"Saravana" <saravank@sct.co.in> wrote in message news:<evzXR#ANDHA.2768@tk2msftngp13.phx.gbl>...> You can access your checkbox control using datagrid items. You can loop
> through datagrid.items method, if it is header item. Then access your
> checkbox control from that datagriditem.
>
> Example
> For Each di In DataGrid1.Items
>
> ' Make sure this is an item and not the header or footer.
>
> If di.ItemType = ListItemType.Header then
>
> dim str as boolean
>
> str = CType(di.FindControl("Checkboxname"), CheckBox).Checked
>
> end if
> next
>
>
> -Saravana
> MCAD,SE,SD,DBA.
>
>
> "Volkan Karaboša" <volkan.karaboga@aktif.com.tr> wrote in message
> news:#j9QYPANDHA.3088@TK2MSFTNGP10.phx.gbl...> > Hi all...
> >
> > How can I check if a checkbox control which is on the datagridheader is
> > checked??
> > could you help me please...
> >
> >Matt Guest
-
Having 2-row customized header within the DataGrid
Hi, I am trying to create a page in ASP.NET with the DataGrid control while looking to my previously programmed ASP pages with ordinary HTML... -
datagrid header
Is it possible to have an overall header that spans across all columns? An example would be a class schedule for student Ben. |Ben |English ... -
Header Controls
Hi All, Can someone help me with what I believe could be a simple answer. I've created a datagrid, of which I have a template column containing... -
Server Controls in header file
Hi, I have files called header.ascx and footer.ascx which are included in pages by a class that inherits System.Web.UI.Page and overides OnInit.... -
DataGrid header and <TH>
Hello Vaclav, You might use the HeaderStyle of the DataGrid which will create Th on the client side. You can also attach style attribute to this...



Reply With Quote

