Connecting Tech Pros Worldwide Help | Site Map

Columnspan in Datagrid ?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 18th, 2005, 03:30 AM
ajaymehra
Guest
 
Posts: n/a
Default Columnspan in Datagrid ?


Hi,
I am using a dataview as my datagrids datasource and binding i
dynamically.
Can I specify a column span for a single row of a datagrid?

Thanks in advance,
Aja

ajaymehr
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message367697.htm


  #2  
Old November 18th, 2005, 03:31 AM
Alvin Bruney [MVP]
Guest
 
Posts: n/a
Default Re: Columnspan in Datagrid ?

sure,
do so in the itemdatabound. each row gets bound in this event so you can
pick your row, apply column span and then mark that row as dirty so
columnspan doesn't get applied to every row. Use viewstate for this
ViewState["DIRTY"] = "True"

if(e.item.itemtype = = listitem.item)
{
if(ViewState["DIRTY"] == null)
e.item.cells[2].ColumnSpan = 2;
}

roughly
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"ajaymehra" <ajaymehra.117nir@mail.mcse.ms> wrote in message
news:ajaymehra.117nir@mail.mcse.ms...[color=blue]
>
> Hi,
> I am using a dataview as my datagrids datasource and binding it
> dynamically.
> Can I specify a column span for a single row of a datagrid?
>
> Thanks in advance,
> Ajay
>
>
> ajaymehra
> ------------------------------------------------------------------------
> Posted via http://www.mcse.ms
> ------------------------------------------------------------------------
> View this thread: http://www.mcse.ms/message367697.html
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.