Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
980
Auto Generated Columns styling and value trimming
posted

Hello,

I use auto generating of columnes in wdg. In pageload i bind the grid to the dataview. How do I set css for those columns? I tried to do that in databound event, but it doesn't find the columns. One more point - I need to trim the string in the column. In uwg it was possible like this

protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)
{
       e.Row.Cells[0].Value = e.Row.Cells[0].Value.ToString().TrimEnd();
}

But in wdg it's allowed only for unbound columnes. Any help?