467,122 Members | 1,276 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

datagrid cell

Das
Hi,
with the datagrid c# windows app I have set the grid to readonly. I don't
want user to modify anything into the grid. with the readonly user can not
modify. But I aslo don't want the cell to appear into the grid.

I want to get rid of the cell....
Thanks in advance...

Regards,

das
Nov 17 '05 #1
  • viewed: 1297
Share:
3 Replies
Das,

What do you mean by getting the cell to appear in the grid? Do you mean
you don't want the cell to be highlighted? I don't think that is possible.
You could set the TabStop property to false perhaps, which would cause the
grid to not gain focus, but I don't know if that would stop the
highlighting.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Das" <Da*@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
Hi,
with the datagrid c# windows app I have set the grid to readonly. I don't
want user to modify anything into the grid. with the readonly user can not
modify. But I aslo don't want the cell to appear into the grid.

I want to get rid of the cell....
Thanks in advance...

Regards,

das

Nov 17 '05 #2
Das wrote:
Hi,
with the datagrid c# windows app I have set the grid to readonly. I don't
want user to modify anything into the grid. with the readonly user can not
modify. But I aslo don't want the cell to appear into the grid.

I want to get rid of the cell....
Thanks in advance...

Regards,

das

Are you saying you want to remove a column from the Datagrid? or just
one cell in one row? You want some columns to show for some users and
not for other users? If you set the Column's width to 0 the user won't
see it.

Chris
Nov 17 '05 #3
Das
Hi,
thanks for reply,
I don't want the current cell to appear in the grid.

It means the the grid should show flat without showing any cells like
listview control...
Thanks

Regards,

das

"Das" wrote:
Hi,
with the datagrid c# windows app I have set the grid to readonly. I don't
want user to modify anything into the grid. with the readonly user can not
modify. But I aslo don't want the cell to appear into the grid.

I want to get rid of the cell....
Thanks in advance...

Regards,

das

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Emerson | last post: by
2 posts views Thread by Daniel Walzenbach | last post: by
4 posts views Thread by Suzanne | last post: by
4 posts views Thread by tg | last post: by
13 posts views Thread by pmcguire | last post: by
9 posts views Thread by rn5a@rediffmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.