void ResizeGridEditBoxes(DataGrid oGrid, DataGridItem oGridItem ) { int nCtr; TextBox oTextbox; for (nCtr = 0; ...Re: Datagrid:--> Adjusting column width in edit mode without using template column?please link to http://140.127.113.212/example/grid_edit.aspx another solution to adjust width of boundcolumn in datagrid under edit mode. the key point of this solution is to determine the width of headerstyle Re: Datagrid:--> Adjusting column width in edit mode without using template column?Cheers ! ! ! peaceRe: Datagrid:--> Adjusting column width in edit mode without using template column?works like a charm. If we all lived in the same area, I'd be buying you all a round of your favorite drink. You guys like water with lemons right??? hahahaha Thanks again for all the patience!!! TomRe: Datagrid:--> Adjusting column width in edit mode without using template column?EssTooKayTD, Where are you specifying the width of your columns? In the HeaderStyle or in the ItemStyle. In the examples I have shown I had you specify the width in the HeaderStyle. CallMeLee assumes that the width in being ...Re: Datagrid:--> Adjusting column width in edit mode without using template column?Do this -------> "Sorry, I should have mentioned that each column have your datagrid must have the itemstyle-width attribute specified." Re: Datagrid:--> Adjusting column width in edit mode without using template column?Thanks Sam, the code compiles and runs, but my columns are not adjusting. Right now, I have the entire grid set at about 700 px. my first column is the edit/delete colun which is also set at around 75 px. Re: Datagrid:--> Adjusting column width in edit mode without using template column?C# language is getting certified. Thats a good reason to learn it! Anyhoot... here is your answer. Modify: if (oGridItem.Cells[nCtr].Controls[0].GetType() is oTextbox.GetType)**** To: if ...Re: Datagrid:--> Adjusting column width in edit mode without using template column?OK, i've done most of the conversion to C#. void ResizeGridEditBoxes(DataGrid oGrid, DataGridItem oGridItem ) { int nCtr; TextBox oTextbox; for (nCtr = 0; ...
void ResizeGridEditBoxes(DataGrid oGrid, DataGridItem oGridItem ) { int nCtr; TextBox oTextbox; for (nCtr = 0; ...