Hi Team,
We are using ultrawebgrid to change column style visible=true but it's showing error
i wanted to visible coumn based on the my conditions
please help me to find the solution
code:
Protected Sub uwgTransfer_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles
uwgTransfer.InitializeLayout
Try
uwgTransfer.Columns(0).Visible =True
Catch PromisEx As
Exception
Throw
PromisEx
End
Sub
Hi ranganathanpalanisamy,
What error are you getting? Note that the Visible property is read-only, you can use Hidden to hide or show a column.
Thanks For your reply,
While Getting the compilation error in visual studio 2008.
Error Decription :
Property 'Visible' is 'ReadOnly'
Code Part:
uwgTransfer.Columns(0).Visible = ColumCanBeVisible(uwgTransfer.Columns(0).ToString())
Expected REsult :
i wanted to visibile coulmn based on my code conditions.
Can you please share some code
Really appreciate your help..
Thanks
Hi,
I'm glad I could help.
If you have other questions, please feel free to contact me.
Thanks for your reply ,
It's Working fine.
As I posted earlier, it is not possible to set the Visible property. You should use the "Hidden" property - your code should look like this:
uwgTransfer.Columns(0).Hidden = ColumCanBeVisible(uwgTransfer.Columns(0).ToString())
Hope this helps.