datagrid cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Das said:
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
 
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.
 
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
 
Back
Top