Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

If you're using a bound grid control, you're essentially asking to dynamically create a new column (only up to 5) as you go. I'd think it's possible, but I'm not sure if you can trap the "tab" key in the grid to automatically add the column as they tabbed out of the 1st column (to create the second column). If you have to handle deleting columns you might be in trouble :)

 

I have a project that needs a dynamic number of columns and rows and I generate a dataset and the matching rows/columns ahead of time. I chose to use dynamically created textboxes in a scrolling panel control to mimic a grid. It's not that much code and works very nice, but has the side effect of being pretty slow (much slower than you'd think for creating 12-15 textboxes and 8 or 9 labels).

 

Why not just create the table with 5 columns and not worry about it?

 

-Ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

i want to create address label and if i create 1 record in 1 row it loose many white paper in right side so i try to create in next column but i dont want to using loop in table like asp

 

so i want to do in grid if it can but i dont know how to do ! T__T

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...