By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

Question regarding dock property of datagrid

P: n/a
Hi all,

I am having problem at a time of using datagrid in

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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.