471,317 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

Question regarding dock property of datagrid

Hi all,

I am having problem at a time of using datagrid in c#.net.

On currentcell change event of datagrid i am displaying one combobox
and setting location of combobox depending on location of current cell

When i set dock property of datagrid to top it is working properly. But
when i check it to dock bottom it is not displaying combobox at proper

So i don't know why this is happening. Is there anything i am missing.
I am posting code which i am writing on currentcellchanged event :-

comboBox1.Width = 0 ;
comboBox1.Left = dataGrid1.GetCurrentCellBounds().Left ;
comboBox1.Top = dataGrid1.GetCurrentCellBounds().Top ;
comboBox1.Width = dataGrid1.GetCurrentCellBounds().Width ;
comboBox1.Height = dataGrid1.GetCurrentCellBounds().Height ;

This code is working properly when dock style of datagrid is top but
not when dock style is bottom.

Can someone tell me why this is happening.

Any help will be truely aprpreciated.

Thanks in advnace.

Jan 24 '06 #1
0 1306

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by James | last post: by
3 posts views Thread by Marcelo | last post: by
12 posts views Thread by Joe | last post: by
4 posts views Thread by jvb | last post: by
3 posts views Thread by John Wright | last post: by
7 posts views Thread by Anil Gupte | last post: by
2 posts views Thread by DBC User | last post: by
3 posts views Thread by DBC User | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.